<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>5 Nov 2015 16:05:00 Z</lastBuildDate><pubDate>4 Nov 2015 06:00:00 Z</pubDate><description>I have a query in which there are multiple parameters.&#13;
&#13;
Depending on user selection I want to set some parameters with a value and some without any value so that they do not have any effect on the output of the query.&#13;
&#13;
Here is the query:&#13;
SELECT student_master.sm_id AS sm_id, student_master.sm_student_name AS sm_student_name, student_master.sm_gr_no AS sm_gr_no, enrollment.enrollment_roll_no AS enrollment_roll_no, student_master.sm_gender AS sm_gender, student_master.sm_performance_benchmark AS sm_performance_benchmark FROM enrollment, student_master WHERE enrollment.enrollment_sm_id = student_master.sm_id AND ( enrollment.enrollment_ay_id = {ParamAcademicYear} AND enrollment.enrollment_std_id = {ParamStdID} AND enrollment.enrollment_div_id = {ParamDivID} ) Here for example if a user selects the Standard then I just want to set the {ParamStdID} to a value and make others null.&#13;
&#13;
How to achieve this?&#13;
&#13;
If I try to set the other parameters to null it get error at run time.&#13;
&#13;
TIA&#13;
&#13;
Yogi Yang</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query/read.awp</link><title>[WX17] - How to set null parameters in an Query</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/54815-wx17-how-set-null-parameters-query-54854/read.awp</comments><pubDate>5 Nov 2015 16:05:00 Z</pubDate><description>Looking at the Help, it was introduced at V16, but that was probably into WD?&#13;
&#13;
If it's not avaiable in your version of WM, I w…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54854/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54854/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query/read.awp">[WX17] - How to set null parameters in an Query</source><title>Re: [WX17] - How to set null parameters in an Query</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54852/read.awp</comments><pubDate>5 Nov 2015 15:57:00 Z</pubDate><description>Darren,&#13;
&#13;
I tried the the HFreeQuery route but in case of WM17 it gives error in the final Android at run time.&#13;
&#13;
TIA</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54852/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54852/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query/read.awp">[WX17] - How to set null parameters in an Query</source><title>Re: [WX17] - How to set null parameters in an Query</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54851/read.awp</comments><pubDate>5 Nov 2015 15:52:00 Z</pubDate><description>Arie,&#13;
&#13;
I have two windows.&#13;
&#13;
In one the user selects the criteria which are displayed as combo boxes. Here is the screen shot…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54851/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54851/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query/read.awp">[WX17] - How to set null parameters in an Query</source><title>Re: [WX17] - How to set null parameters in an Query</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54850/read.awp</comments><pubDate>5 Nov 2015 15:50:00 Z</pubDate><description>Hey Yogi,&#13;
&#13;
If you issue a HFreeQuery beforehand, you shouldn't need the "= Null" lines of code. HFreeQuery is the easiest/safe…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54850/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54850/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query/read.awp">[WX17] - How to set null parameters in an Query</source><title>Re: [WX17] - How to set null parameters in an Query</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54849/read.awp</comments><pubDate>5 Nov 2015 15:35:00 Z</pubDate><description>Darren,&#13;
&#13;
I think I have found my answer from your reply.&#13;
&#13;
But just for clarifications. Will this code work?&#13;
IF AY &gt; 0 THEN …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54849/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54849/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query/read.awp">[WX17] - How to set null parameters in an Query</source><title>Re: [WX17] - How to set null parameters in an Query</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54841/read.awp</comments><pubDate>5 Nov 2015 09:33:00 Z</pubDate><description>Yogi,&#13;
&#13;
I have a pretty complex query and a set of fields and drop-downs where the user selects and enters various values and h…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54841/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54841/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query/read.awp">[WX17] - How to set null parameters in an Query</source><title>Re: [WX17] - How to set null parameters in an Query</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54839/read.awp</comments><pubDate>5 Nov 2015 09:08:00 Z</pubDate><description>Yogi,&#13;
there are several ways to present the query data, can you give us more details?&#13;
&#13;
In my apps I use queries this way almo…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54839/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54839/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query/read.awp">[WX17] - How to set null parameters in an Query</source><title>Re: [WX17] - How to set null parameters in an Query</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54838/read.awp</comments><pubDate>5 Nov 2015 08:00:00 Z</pubDate><description>Hi yogi,&#13;
&#13;
This is I guess normal behavior. You cannot use a querie over and over again. You can but moast likely get unexpecte…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54838/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54838/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query/read.awp">[WX17] - How to set null parameters in an Query</source><title>Re: [WX17] - How to set null parameters in an Query</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54836/read.awp</comments><pubDate>5 Nov 2015 05:49:00 Z</pubDate><description>Arie and Danner,&#13;
&#13;
Thanks for your inputs but I have to use the same query again and again with different parameters.&#13;
&#13;
Let me…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54836/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54836/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query/read.awp">[WX17] - How to set null parameters in an Query</source><title>Re: [WX17] - How to set null parameters in an Query</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54822/read.awp</comments><pubDate>4 Nov 2015 11:15:00 Z</pubDate><description>...further to Arie's response, if you need to re-execute the query, I tend to issue a HFreeQuery to free up system resources but…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54822/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54822/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query/read.awp">[WX17] - How to set null parameters in an Query</source><title>Re: [WX17] - How to set null parameters in an Query</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54818/read.awp</comments><pubDate>4 Nov 2015 08:53:00 Z</pubDate><description>Yogi,&#13;
then just don't fill in those parameters.&#13;
Suppose your query is named Query1 and you records with stdid=3 then do this:&#13;…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54818/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query-54818/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54815-wx17-how-set-null-parameters-query/read.awp">[WX17] - How to set null parameters in an Query</source><title>Re: [WX17] - How to set null parameters in an Query</title></item></channel></rss>
