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

SQL Statement probleme

Status
Not open for further replies.

hifive

Programmer
Jan 18, 2001
8
CA
Got a problem with this staement:

sqlString = "SELECT product_id,product_picture,product,product_briefdesc" &_
"FROM Prod_Products WHERE Product_category='" & cat & "' "&_
"AND product_status=1 " &_
"ORDER BY Product "

I GAVE ME THIS ERROR (SORRY IT'S FRENCH)

Microsoft OLE DB Provider for ODBC Drivers erreur '80040e14'

[Microsoft][Pilote ODBC Microsoft Access] Erreur de syntaxe (opérateur absent) dans l'expression 'product_briefdescFROM Prod_Products WHERE Product_category='Home' AND product_status=1 ORDER BY Product'.

/ProductList.asp, ligne 9

CAN you help me
 
First thank's for your response!
i knew that but how to do it ???

Hifive
 
Add the space at the end of the first string:

sqlString = "SELECT product_id,product_picture,product,product_briefdesc " &_

Tom Davis
tdavis@sark.com
 
Hi tomsark and thank's for your interest
i tried this too but that gave me this error message ;
********************************************************
Microsoft OLE DB Provider for ODBC Drivers erreur '80040e10'

[Microsoft][Pilote ODBC Microsoft Access] Trop peu de paramètres. 1 attendu.

/ProductList.asp, line 9

FRENCH TRANSLATION****
trop peu de parametre = Not enough parameters
1 attendus = 1 expected
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top