Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql Pass Through
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00902675
Message ID:
00902680
Views:
12
David,

You can use textmerge to build your query
TEXT TO lcSql TEXTMERGE NOSHOW PRETEXT 7
Select * From Accounts Where RefNo in (<<crefno>>) 
ENDTEXT
lnResult = SQLEXEC(lnConn, lcSql)
...
>Hi,
>
>I am selecting multiple rows from a list box and based on selected values, I like to query the datasource using sql pass through.
>
>Select * From Accounts Where (RefNo in (?crefno) )
>
>where crefno is '1','11','121','aaaa'
>
>This method works for a single value but not for a group of values. Any advice?
>
>Regards,
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform