<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>29 Jan 2016 15:13:00 Z</lastBuildDate><pubDate>29 Jan 2016 10:44:00 Z</pubDate><description>Hi. I love having in query editor the ability of setting null a parameter in order to cut off a piece of condition in WHERE clause.&#13;
Ex. WHERE field1 = {p1} AND field2 = {p2}&#13;
where setting p1 = Null and p2 = 5 means having only WHERE field2 = 5&#13;
&#13;
What if I need to make parametric an IS NULL condition?&#13;
Ex. WHERE (field1 = {p1}) OR (field1 IS NULL)&#13;
I need to run this WHERE even cutting off "OR field1 IS NULL" part.&#13;
The goal is including or excluding NULL values for Field1 depending on what the user needs. I would use 2 different queries but often the list of fields that need this management could be 10 or more, in the same query...&#13;
I did not succeed in making disappear an IS NULL condition by parameters.&#13;
&#13;
Is there a way to do it or should I leave the Query Editor for non-banal ordinary queries and write all these queries by hand?&#13;
&#13;
Thank you.&#13;
Stefano</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56124-query-editor-can-make-null-condition-parametric/read.awp</link><title>Query editor: can we make IS NULL condition parametric?</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56124-query-editor-can-make-null-condition-parametric-56138/read.awp</comments><pubDate>29 Jan 2016 15:13:00 Z</pubDate><description>This is easily accomplished in the query editor by creating a calculated item and entering the SQL commands that Erik's suggests…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56124-query-editor-can-make-null-condition-parametric-56138/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56124-query-editor-can-make-null-condition-parametric-56138/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56124-query-editor-can-make-null-condition-parametric/read.awp">Query editor: can we make IS NULL condition parametric?</source><title>Re: Query editor: can we make IS NULL condition parametric?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56124-query-editor-can-make-null-condition-parametric-56135/read.awp</comments><pubDate>29 Jan 2016 14:56:00 Z</pubDate><description>So parametric conditions including IS NULL implies query by hand...&#13;
&#13;
Then it means that for using Query Editor for complex sel…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56124-query-editor-can-make-null-condition-parametric-56135/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56124-query-editor-can-make-null-condition-parametric-56135/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56124-query-editor-can-make-null-condition-parametric/read.awp">Query editor: can we make IS NULL condition parametric?</source><title>Re: Query editor: can we make IS NULL condition parametric?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56124-query-editor-can-make-null-condition-parametric-56134/read.awp</comments><pubDate>29 Jan 2016 14:32:00 Z</pubDate><description>Hi,&#13;
&#13;
This would be my approach too.&#13;
A little remark on Eriks code: include the "WHERE" in the condition strings, so if you le…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56124-query-editor-can-make-null-condition-parametric-56134/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56124-query-editor-can-make-null-condition-parametric-56134/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56124-query-editor-can-make-null-condition-parametric/read.awp">Query editor: can we make IS NULL condition parametric?</source><title>Re: Query editor: can we make IS NULL condition parametric?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56124-query-editor-can-make-null-condition-parametric-56127/read.awp</comments><pubDate>29 Jan 2016 12:03:00 Z</pubDate><description>Hi Stefano,&#13;
&#13;
if I understand correct, what I am doing in this case:&#13;
&#13;
creating a string variable and fill it with the query.&#13;…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56124-query-editor-can-make-null-condition-parametric-56127/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56124-query-editor-can-make-null-condition-parametric-56127/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56124-query-editor-can-make-null-condition-parametric/read.awp">Query editor: can we make IS NULL condition parametric?</source><title>Re: Query editor: can we make IS NULL condition parametric?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56124-query-editor-can-make-null-condition-parametric-56125/read.awp</comments><pubDate>29 Jan 2016 10:50:00 Z</pubDate><description>PS.&#13;
It seems that my question is similar or slightly related to a recent one make by DannHCS.&#13;
The topic is the same, I'm not s…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56124-query-editor-can-make-null-condition-parametric-56125/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56124-query-editor-can-make-null-condition-parametric-56125/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56124-query-editor-can-make-null-condition-parametric/read.awp">Query editor: can we make IS NULL condition parametric?</source><title>Re: Query editor: can we make IS NULL condition parametric?</title></item></channel></rss>
