<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>28 Mar 2016 21:06:36 Z</lastBuildDate><pubDate>5 Dec 2010 23:19:31 Z</pubDate><description>Greetings All,&#13;
Lately I have been using the Query modeler and things have been going smoothly.  Today I had to create a query using straight SQL because there are multiple outer joins and the use of correlation table names (aliases).&#13;
The SQL executes fine in the Query tool as long as I check Run hQueryWithoutCorrection in test mode.&#13;
But when I run it in the window, I get an error telling me that parameters are not allowed.&#13;
I have SQL Native Access installed.&#13;
Thanks for any pointers!!&#13;
Paul&#13;
Here is the SQL&#13;
[code]&#13;
SELECT DISTINCT&#13;
FTP.FP_CITY,&#13;
FTP.FP_POSTAL_CODE,&#13;
FAA.A_ID,&#13;
FAA.AIRPORT_IDENTITY,&#13;
FARS.a_identity,&#13;
FARS.SP_ID AS SP_ID,&#13;
FARS.AR_VEHICLE_TYPE AS AR_VEHICLE_TYPE,  &#13;
FARS.AR_BASE_RATE AS AR_BASE_RATE,            &#13;
FARS.AR_GRATUITY AS AR_GRATUITY,      &#13;
FARS.AR_PARKING AS AR_PARKING,        &#13;
FARS.AR_TOLLS AS AR_TOLLS,      &#13;
FARS.AR_FUEL AS AR_FUEL,          &#13;
FARS.AR_EMLN AS AR_EMLN,        &#13;
FARS.AR_MEET_GREET AS AR_MEET_GREET,      &#13;
FARS.AR_HOLIDAY AS AR_HOLIDAY,          &#13;
FARS.AR_DISCOUNT AS AR_DISCOUNT,      &#13;
FARS.RT_TOTAL AS RT_TOTAL,      &#13;
FARS.r_currency AS r_currency,        &#13;
FARS.r_drivetime AS r_drivetime,        &#13;
FARS.AR_MILEAGE AS AR_MILEAGE,        &#13;
FARS.AR_RATE_RANK AS AR_RATE_RANK&#13;
FROM             FT_PLACE FTP&#13;
INNER JOIN       FT_AIRPORT_ALL FAA ON FAA.A_ID = {Param_Affiliate_Supported_Airport}&#13;
LEFT OUTER JOIN  FT_AFFILIATE_RATE_STAGED FARS ON FTP.FP_IDENTITY = FARS.a_identity AND FAA.AIRPORT_IDENTITY = FARS.b_identity AND FARS.SP_ID = {Param_AffiliateID}&#13;
WHERE   FTP.FP_COUNTRY = {Param_Affiliate_Supported_Country}&#13;
AND     FTP.FP_STATE = {Param_Affiliate_Supported_Region}&#13;
AND     FTP.FP_COUNTY = {Param_Affiliate_Supported_SubRegion}&#13;
ORDER BY&#13;
FTP.FP_CITY,&#13;
FTP.FP_POSTAL_CODE;&#13;
[/code]&#13;
&#13;
----------CODE ON THE BUTTON----------------------&#13;
[code]&#13;
HExecuteQuery(QRY_Rates_Staged_By_SubRegion_AffiliateID,hQueryWithoutCorrection,AffiliateID,gsRegion,"EWR",gsSubRegion,gsCountry)&#13;
TableDisplay(TABLE_QRY_Rates_Staged_By_SubRegion_AffiliateID)&#13;
TableSelectMinus(TABLE_QRY_Rates_Staged_By_SubRegion_AffiliateID)&#13;
[/code]&#13;
----------END OF CODE ON THE BUTTON----------------------&#13;
&#13;
----------ERROR MESSAGE----------------------&#13;
[code]&#13;
The 'TABLE_QRY_Rates_Staged_By_SubRegion_AffiliateID' control was not be initialized, the following HyperFileSQL error occurred:&#13;
=============================&#13;
Error in the SQL code of  query. Unable to initialize the query.&#13;
The use of parameters is not allowed with HExecuteSQLQuery.&#13;
=============================&#13;
Error in the SQL code of  query. Unable to initialize the query.&#13;
The use of parameters is not allowed with HExecuteSQLQuery.&#13;
[/code]&#13;
----------ERROR MESSAGE----------------------&#13;
I also tried this code but I get a similar error:&#13;
[code]&#13;
QRY_Rates_Staged_By_SubRegion_AffiliateID.Param_Affiliate_Supported_Airport = "EWR"&#13;
QRY_Rates_Staged_By_SubRegion_AffiliateID.Param_Affiliate_Supported_Country = gsCountry&#13;
QRY_Rates_Staged_By_SubRegion_AffiliateID.Param_Affiliate_Supported_Region = gsRegion&#13;
QRY_Rates_Staged_By_SubRegion_AffiliateID.Param_Affiliate_Supported_SubRegion = gsSubRegion&#13;
QRY_Rates_Staged_By_SubRegion_AffiliateID.Param_AffiliateID = AffiliateID&#13;
//HExecuteSQLQuery(QRY_Rates_Staged_By_SubRegion_AffiliateID,hQueryWithoutCorrection,AffiliateID,gsRegion,"EWR",gsSubRegion,gsCountry)&#13;
HExecuteSQLQuery(QRY_Rates_Staged_By_SubRegion_AffiliateID,hQueryWithoutCorrection,MyConnectionNativeSQL)&#13;
TableDisplay(TABLE_QRY_Rates_Staged_By_SubRegion_AffiliateID)&#13;
TableSelectMinus(TABLE_QRY_Rates_Staged_By_SubRegion_AffiliateID)&#13;
[/code]</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/29292-hexecutesqlquery-parameters-not-allowed-webdev/read.awp</link><title>HExecuteSQLQuery - Parameters Not Allowed - WebDev 15</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>rosa_negra776</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/29292-hexecutesqlquery-parameters-not-allowed-webdev-57068/read.awp</comments><pubDate>28 Mar 2016 21:06:36 Z</pubDate><description>HOLA TENGO UN PROBLEMA EN UNA TABLA SELECCIONE UNA QRY PERO QUIERO AÑADIR UNA COLUMNA CHECKS EN LA CUAL GUARDAR DATO POR DATO</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/29292-hexecutesqlquery-parameters-not-allowed-webdev-57068/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/29292-hexecutesqlquery-parameters-not-allowed-webdev-57068/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/29292-hexecutesqlquery-parameters-not-allowed-webdev/read.awp">HExecuteSQLQuery - Parameters Not Allowed - WebDev 15</source><title>Re: HExecuteSQLQuery - Parameters Not Allowed - WebDev 15</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/29292-hexecutesqlquery-parameters-not-allowed-webdev-29352/read.awp</comments><pubDate>7 Dec 2010 22:26:24 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/es-ES/pcsoft.us.windev/29292-hexecutesqlquery-parameters-not-allowed-webdev-29352/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/29292-hexecutesqlquery-parameters-not-allowed-webdev-29352/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/29292-hexecutesqlquery-parameters-not-allowed-webdev/read.awp">HExecuteSQLQuery - Parameters Not Allowed - WebDev 15</source><title>Re: HExecuteSQLQuery - Parameters Not Allowed - WebDev 15</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/29292-hexecutesqlquery-parameters-not-allowed-webdev-29303/read.awp</comments><pubDate>6 Dec 2010 10:30:52 Z</pubDate><description>Hi Paul,&#13;
Outside the query editor a query is just a string.&#13;
For these queries it is probably the easiest way to use stringbuil…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/29292-hexecutesqlquery-parameters-not-allowed-webdev-29303/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/29292-hexecutesqlquery-parameters-not-allowed-webdev-29303/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/29292-hexecutesqlquery-parameters-not-allowed-webdev/read.awp">HExecuteSQLQuery - Parameters Not Allowed - WebDev 15</source><title>Re: HExecuteSQLQuery - Parameters Not Allowed - WebDev 15</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/29292-hexecutesqlquery-parameters-not-allowed-webdev-29301/read.awp</comments><pubDate>6 Dec 2010 07:38:03 Z</pubDate><description>I start to wonder if there is not something goofy with my setup.&#13;
I changed the parameters in the SQL Query.  I still get the er…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/29292-hexecutesqlquery-parameters-not-allowed-webdev-29301/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/29292-hexecutesqlquery-parameters-not-allowed-webdev-29301/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/29292-hexecutesqlquery-parameters-not-allowed-webdev/read.awp">HExecuteSQLQuery - Parameters Not Allowed - WebDev 15</source><title>Re: HExecuteSQLQuery - Parameters Not Allowed - WebDev 15</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/29292-hexecutesqlquery-parameters-not-allowed-webdev-29300/read.awp</comments><pubDate>6 Dec 2010 07:37:45 Z</pubDate><description>Greetings all,&#13;
I seem to be stuck in SQL HELL.&#13;
I have had great success with executing queries with parameters as long as I ca…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/29292-hexecutesqlquery-parameters-not-allowed-webdev-29300/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/29292-hexecutesqlquery-parameters-not-allowed-webdev-29300/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/29292-hexecutesqlquery-parameters-not-allowed-webdev/read.awp">HExecuteSQLQuery - Parameters Not Allowed - WebDev 15</source><title>Re: HExecuteSQLQuery - Parameters Not Allowed - WebDev 15</title></item></channel></rss>
