Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need some help with macro-substitutions in SQL-statement
Message
 
 
To
15/06/2001 03:32:24
Eugene Kolmakov
Millennium Technologies
Vladivostok, Russia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00519841
Message ID:
00519929
Views:
11
When I get theis problem it is usually because my first expression was blank and the where clause began with "AND". You may want to step through your code to determine the values of a1 a2 etc.

You may also need to place the "&" before each variable. I think construct &a1.a2.a3 will expand a1 but not a2 and a3. But I have not verified this.

>I need to build SQL-statement and the problem is that I have too many conditions in WHERE-clause. I try to store them in some variables and then use the "&a1.a2.a3..." expression to append conditions in a query. But it generates error message during execution. Maybe anybody knows the way to solve this problem ?
Ken Wardwell
Previous
Reply
Map
View

Click here to load this message in the networking platform