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, Cant Find It

Status
Not open for further replies.

catalystunderx

Programmer
May 17, 2003
13
GB
sqlString = "INSERT INTO Products ( ProductName, ProductCode, UnitPrice, Desc, Download, Weight, DownloadLink, UnitsInStock, ProductCategory, ImageFront, ImageBack, ImageZoom ) VALUES ( " &_
" '" & ProductName & "', " &_
" '" & ProductCode & "', " &_
UnitPrice & ", " &_
" '" & Desc & "', " &_
" '" & Download & "', " &_
Weight & ", " &_
" '" & DownloadLink & "', " &_
UnitsInStock & ", " &_
" '" & ProductCategory & "', " &_
" '" & ImageFront & "', " &_
" '" & ImageBack & "', " &_
" '" & ImageZoom & "'"" )
 
Have you tried a VB forum? This would be a lot easier if you used a parmeterized query.
 
I highlighted the missing chars :

sqlString = "INSERT INTO Products ( ProductName, ProductCode, UnitPrice, Desc, Download, Weight, DownloadLink, UnitsInStock, ProductCategory, ImageFront, ImageBack, ImageZoom ) VALUES ( " &_
" '" & ProductName & "', " &_
" '" & ProductCode & "', " &_
UnitPrice & ", " &_
" '" & Desc & "', " &_
" '" & Download & "', " &_
Weight & ", " &_
" '" & DownloadLink & "', " &_
UnitsInStock & ", " &_
" '" & ProductCategory & "', " &_
" '" & ImageFront & "', " &_
" '" & ImageBack & "', " &_
" '" & ImageZoom & "'"[highlight] &_[/highlight]
" )"

[highlight]Django[/highlight]
bug exterminator
tips'n tricks addict
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top