Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a parameter to th IN clause
Message
From
30/07/1999 15:14:29
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00243695
Message ID:
00248333
Views:
19
Hi John,

Hi finally resolved the problem by using SPT:

lcHld_Cat1 = "'F', 'G', 'H'": Passed from user interface

lcSQL = "Select * From DOCKET, Office_Docket, Docket_Org, Organization"
lcSQL = lcSQL+" WHERE DOCKET.DOCKET_ID=Office_Docket.DOCKET_FK"
lcSQL = lcSQL+" AND DOCKET.DOCKET_ID=DOCket_ORG.DOCKET_FK"
lcSQL = lcSQL+" AND ORGANIZation.ORG_ID = DOCket_ORG.ORG_FK"
lcSQL = lcSQL+" AND SUBSTRING(PROD_CAT_CD,1,1) IN (&lcHld_Cat1)"
gnHandle=sqlconnect("xxxxxx", "yyyyy", "??????")
=SQLExec(gnHandle, lcSQL, "vReports")


Thank you all.

Regards,

Paige
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform