<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>20 Jun 2025 07:51:24 Z</lastBuildDate><pubDate>6 Dec 2010 23:17:06 Z</pubDate><description>Greetings All,&#13;
Can someone tell me if it IS or IS NOT possible to use a query via HExecuteQuery if the query was built using hand-written sql with parameters hitting SQL Server with Native Access?&#13;
I created the query, pressed F2 to view the sql, pasted in the sql with the parameters, checked the box to 'Run with HQueryWithoutCorrection in test mode', I run the test, type in the values for the parameter it works perfectly!!&#13;
I think I should be able to associate that query with a table and load it using the code below.&#13;
YES?  NO?  It does not work for me as I get a runtime error stating 'The use of parameters is not allowed with HExecuteSQLQuery.'  This is odd because I am doing HExecuteQuery, not HExecuteSQLQuery.&#13;
I know I will have to hand code the updates as it is a complex query, but I really don't want to have to code for the loading of the table.&#13;
Here is my code:&#13;
[code]&#13;
QRY_Rates_Staged_By_SubRegion_AffiliateID2.Param_Airport = sAirport&#13;
QRY_Rates_Staged_By_SubRegion_AffiliateID2.Param_Country = gsCountry&#13;
QRY_Rates_Staged_By_SubRegion_AffiliateID2.Param_Region = gsRegion&#13;
QRY_Rates_Staged_By_SubRegion_AffiliateID2.Param_SubRegion = gsSubRegion&#13;
QRY_Rates_Staged_By_SubRegion_AffiliateID2.Param_Affiliate = AffiliateID&#13;
HExecuteQuery(QRY_Rates_Staged_By_SubRegion_AffiliateID2,MyConnectionNativeSQL,hQueryWithoutCorrection)&#13;
TableDisplay(TABLE_QRY_Rates_Staged_By_SubRegion_AffiliateID)&#13;
TableSelectMinus(TABLE_QRY_Rates_Staged_By_SubRegion_AffiliateID)&#13;
[/code]&#13;
Thanks all!!&#13;
Paul</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true/read.awp</link><title>HExecuteQuery - Parameters Not Allowed  - Is That True?</title><managingEditor>moderateur@pcsoft.fr (The moderator)</managingEditor><webMaster>webmaster@pcsoft.fr (The webmaster)</webMaster><item><author>Alex</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-70950/read.awp</comments><pubDate>20 Jun 2025 07:51:24 Z</pubDate><description>wrote: &#13;
&gt; Greetings All,&#13;
&gt; Can someone tell me if it IS or IS NOT possible to use a query via HExecuteQuery if the query was b…</description><guid isPermaLink="true">https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-70950/read.awp</guid><link>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-70950/read.awp</link><source url="https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true/read.awp">HExecuteQuery - Parameters Not Allowed  - Is That True?</source><title>Re: HExecuteQuery - Parameters Not Allowed  - Is That True?</title></item><item><author>Alex</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-70949/read.awp</comments><pubDate>20 Jun 2025 07:46:47 Z</pubDate><description>wrote: &#13;
&gt; Greetings All,&#13;
&gt; Can someone tell me if it IS or IS NOT possible to use a query via HExecuteQuery if the query was b…</description><guid isPermaLink="true">https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-70949/read.awp</guid><link>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-70949/read.awp</link><source url="https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true/read.awp">HExecuteQuery - Parameters Not Allowed  - Is That True?</source><title>Re: HExecuteQuery - Parameters Not Allowed  - Is That True?</title></item><item><author>Wouter Pleijsier</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-70908/read.awp</comments><pubDate>30 Apr 2025 08:52:57 Z</pubDate><description>Hello,&#13;
&#13;
For people stumbling unto this topic, I got the same error, but had a different cause:&#13;
I had added an Inner Join to m…</description><guid isPermaLink="true">https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-70908/read.awp</guid><link>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-70908/read.awp</link><source url="https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true/read.awp">HExecuteQuery - Parameters Not Allowed  - Is That True?</source><title>Re: HExecuteQuery - Parameters Not Allowed  - Is That True?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29353/read.awp</comments><pubDate>7 Dec 2010 22:26:45 Z</pubDate><description>I FINALLY FIGURED IT OUT - UGH!!  - SEVERAL DAYS LOST&#13;
I am not really sure what is going on, but it turns out that when I creat…</description><guid isPermaLink="true">https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29353/read.awp</guid><link>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29353/read.awp</link><source url="https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true/read.awp">HExecuteQuery - Parameters Not Allowed  - Is That True?</source><title>Re: HExecuteQuery - Parameters Not Allowed  - Is That True?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29336/read.awp</comments><pubDate>7 Dec 2010 06:57:34 Z</pubDate><description>Thanks, Issah.&#13;
I have come to the conclusion that installing the Native SQL Access has goofed something up in my development en…</description><guid isPermaLink="true">https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29336/read.awp</guid><link>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29336/read.awp</link><source url="https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true/read.awp">HExecuteQuery - Parameters Not Allowed  - Is That True?</source><title>Re: HExecuteQuery - Parameters Not Allowed  - Is That True?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29335/read.awp</comments><pubDate>7 Dec 2010 06:57:15 Z</pubDate><description>aka pros and cons.  Thats why I also suggested creating a view and querying from there.  Windev will treat it like a table.  Tha…</description><guid isPermaLink="true">https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29335/read.awp</guid><link>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29335/read.awp</link><source url="https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true/read.awp">HExecuteQuery - Parameters Not Allowed  - Is That True?</source><title>Re: HExecuteQuery - Parameters Not Allowed  - Is That True?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29334/read.awp</comments><pubDate>7 Dec 2010 06:57:01 Z</pubDate><description>Hi Issah,&#13;
If you use your 'best approach' as...&#13;
myselect is sting="select * from stafflist where lastname='%1' and salary &gt; %2…</description><guid isPermaLink="true">https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29334/read.awp</guid><link>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29334/read.awp</link><source url="https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true/read.awp">HExecuteQuery - Parameters Not Allowed  - Is That True?</source><title>Re: HExecuteQuery - Parameters Not Allowed  - Is That True?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29332/read.awp</comments><pubDate>7 Dec 2010 06:56:27 Z</pubDate><description>Thanks Issah,&#13;
I just finished my note to Arie after doing a lot of testing.  I am currently thinking that Native SQL Driver is …</description><guid isPermaLink="true">https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29332/read.awp</guid><link>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29332/read.awp</link><source url="https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true/read.awp">HExecuteQuery - Parameters Not Allowed  - Is That True?</source><title>Re: HExecuteQuery - Parameters Not Allowed  - Is That True?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29331/read.awp</comments><pubDate>7 Dec 2010 06:56:03 Z</pubDate><description>Thanks, Arie.&#13;
There is no semi-colon in the project I am currently trying to run.&#13;
I went back to another project in which I re…</description><guid isPermaLink="true">https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29331/read.awp</guid><link>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29331/read.awp</link><source url="https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true/read.awp">HExecuteQuery - Parameters Not Allowed  - Is That True?</source><title>Re: HExecuteQuery - Parameters Not Allowed  - Is That True?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29330/read.awp</comments><pubDate>7 Dec 2010 06:55:25 Z</pubDate><description>Sorry Paul, was away and couldn't help earlier.&#13;
Whenever you try to edit the generated sql code, WD will warn you that it will …</description><guid isPermaLink="true">https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29330/read.awp</guid><link>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29330/read.awp</link><source url="https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true/read.awp">HExecuteQuery - Parameters Not Allowed  - Is That True?</source><title>Re: HExecuteQuery - Parameters Not Allowed  - Is That True?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29329/read.awp</comments><pubDate>7 Dec 2010 06:54:50 Z</pubDate><description>Paul,&#13;
it IS possible for sure,because i'm doing this as well!&#13;
Maybe the final semi-colon is the bad guy?&#13;
Do you fill ALL para…</description><guid isPermaLink="true">https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29329/read.awp</guid><link>https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true-29329/read.awp</link><source url="https://forum.pcsoft.fr/en-US/pcsoft.us.windev/29327-hexecutequery-parameters-not-allowed-that-true/read.awp">HExecuteQuery - Parameters Not Allowed  - Is That True?</source><title>Re: HExecuteQuery - Parameters Not Allowed  - Is That True?</title></item></channel></rss>
