|
-
Apr 6th, 2003, 06:10 PM
#1
Thread Starter
New Member
Select Statement
When I run this query I get an error of:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'CatCode='.
/projectli/ass1/managehomes.asp, line 79
The query is listed below:
objRS.open "Select * FROM Choice WHERE CatCode=" & taste
Can you help me please
-
Apr 6th, 2003, 06:42 PM
#2
Hyperactive Member
You might have to enclose the CatCode variable in '
e.g
VB Code:
objRS.open "Select * FROM Choice WHERE CatCode='" & taste & "'"
Cheers
Markus
-
Apr 7th, 2003, 09:44 AM
#3
Frenzied Member
OR
your "taste" variable is empty.
check it by typing
response.write "taste value =" & taste
response.end
in front of your sql statement.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|