Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need SELECT help please
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Need SELECT help please
Miscellaneous
Thread ID:
00175160
Message ID:
00175160
Views:
61
My SELECT statement requires 2 substitution field names and I can't get it to work with 2 substitution field names. It works with 1 substitution field name (cField1 and &cField1), but not with 2.

For example:

cField1 is a key field. cField2 is a date field.

cField1 = cRetVa1
cField2 = cRetVal2

SELECT mytable.&cField, mytable.&cField2 FROM mytable ;
WHERE YEAR(mytable.&cField2) = YEAR(DATE()) ;
ORDER BY mytable.&cField ;
INTO CURSOR rpt

Thanks for your help.
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Next
Reply
Map
View

Click here to load this message in the networking platform