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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

syntax error in query expression

Status
Not open for further replies.

aonefun

Technical User
May 21, 2007
79
US
What may be the cause of the error message: syntax error in query expression 'ManufacturerPartNumber="'?

This is recordset query:
SELECT Products.ManufacturerPartNumber, Products.ProductFamily FROM Products WHERE ManufacturerPartNumbe ='" & Request.Form("VendorPartNumber") &"'
 
You seem to have quoting problems.

Try it like this:
Code:
ManufacturerPartNumbe ='" & Request.Form([red]'[/red]VendorPartNumber[red]'[/red]) &"'





----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
thanks for your response.

I'm still getting the same error message
 
How about like this:

Code:
ManufacturerPartNumbe =' & Request.Form([red]"[/red]VendorPartNumber[red]"[/red]) &'

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top