Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IN( ) condition Remote View where filter doesn't return
Message
From
07/03/2006 07:55:12
 
 
To
07/03/2006 02:47:38
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01101117
Message ID:
01102029
Views:
22
>
>try with a macro
>
>in (&vp_isalesdocid)
>
>

>
>Thank you Fabio for your suggestion but the backend SQL Server doesn't understand the macro substitution syntax & so this doesn't work.
>I don't really know why VFP only takes into account the first value in the IN( x,y,z) clause so I think I'll settle for a SQL Pass Through approach because this does work.
>
>BTW: I also tested manually creating the remote view but this gives me the same result as the VFP9 View designer.
>
>Mark

It works for me.
PUBLIC inItems
inItems = '1,2'
CREATE SQL VIEW TEST REMOTE AS SELECT * FROM TABLE WHERE id IN (&inItems) CONNECTION ....
USE TEST
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform