Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

record set not working

Status
Not open for further replies.

aarellano

MIS
Oct 22, 2007
168
US
Hello,
I am building an asp page and it works well but when I use the following expression on my record set it does not work I get the following error
Microsoft JET Database Engine (0x80040E07)
Data type mismatch in criteria expression.
Default.asp, line 208

Line 208 is this
Code:
Recordset1.Source = "SELECT category, item, description, price  FROM menu where category = 1 "


if I put my record set the following way it does work
Code:
Recordset1.Source = "SELECT category, item, description, price  FROM menu"


any help is appreciated
 
ok so I found the answer

I needed
Code:
'" & strParm1 & "'"

thaks everybody
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top