Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to use variable in Create SQL View command
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Trying to use variable in Create SQL View command
Miscellaneous
Thread ID:
00027841
Message ID:
00027841
Views:
78
I'm trying to use a variable in the SELECT statement in the following CREATE SQL VIEW command. I've tried it various different ways ("&p_claimno", "p_claimno", and p_claimno) but each time I get an ODBC error. Any ideas? (I can't create the view using the view designer, the entire command creates a view using left outer joins that I couldn't get working with the view designer).

create sql view add_update2 remote connection upsize share as SELECTfield names FROM Claimant_record
WHERE Claim_Number > &p_claimno;
Next
Reply
Map
View

Click here to load this message in the networking platform