Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VBScript
Message
 
 
To
15/05/2000 15:42:17
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00369761
Message ID:
00369880
Views:
21
>Anybody in here works with Active Server Pages? I get an error with this SELECT command:
>
>SELECT * FROM homes WHERE cmnprice >= price AND cmxprice <= price
>
>*CMNPRICE and CMXPRICE are variables.
>*PRICE is a field in my table.
>
>The error I get:
>Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
>[Microsoft][ODBC Visual FoxPro Driver]SQL: Column 'CMNPRICE' is not found.

You need to build your select string with the variable values not the variable name. Assuming numeric type here.

sql = "SELECT * FROM homes WHERE " & cmnprice & " >= price AND " & cmxprice & " <= price"
Michael McLain
Previous
Reply
Map
View

Click here to load this message in the networking platform