reigalz
04-08-2003, 03:27 PM
hi, i'm doing an ASP project on ecommerce website...
i have a table for my products in the database...
In the products table, there are these fields:
Price, Description, KeyFeatures, SuppliedAccessories, Weight&Dimensions, ProductImage, ProductModel
i'm doing an administrator's page where the admin can update the products' details...
But there's a problem, i can't insert the updated details into the database...i tink it's because the data type for Description, KeyFeatures, SuppliedAccessories, Weight&Dimensions is Memo. As i tried to update the Price field first and it works! why is it that i cannot update the columns with data type as Memo? pls help!
here's my SQL code:
sql="UPDATE Products SET "
sql=sql & "Price='" & price & "',"
sql=sql & "Description='" & description & "',"
sql=sql & "KeyFeatures='" & keyFeatures & "',"
sql=sql & "SuppliedAccessories='" & suppliedAccessories & "',"
sql=sql & "Weight&Dimensions='" & weight_dimensions & "',"
sql=sql & "ProductImage='" & productImageFN & "'"
sql=sql & "WHERE ProductModel='" & productModel & "'"
the error i get is:
Syntax error (missing operator) in query expression ''World's Longest Stamina CD Walkman',KeyFeatures='- G-Protection system<br>- 125 hours playback<br>- Optical digital output<br>- Joint-text capability<br>- CD Text Remote Capability<br>- CD-R/RW Playback',SuppliedAccessories='- Headphones'.
/asp/ASP/Admin_UpdateCD2.asp, line 47
i have a table for my products in the database...
In the products table, there are these fields:
Price, Description, KeyFeatures, SuppliedAccessories, Weight&Dimensions, ProductImage, ProductModel
i'm doing an administrator's page where the admin can update the products' details...
But there's a problem, i can't insert the updated details into the database...i tink it's because the data type for Description, KeyFeatures, SuppliedAccessories, Weight&Dimensions is Memo. As i tried to update the Price field first and it works! why is it that i cannot update the columns with data type as Memo? pls help!
here's my SQL code:
sql="UPDATE Products SET "
sql=sql & "Price='" & price & "',"
sql=sql & "Description='" & description & "',"
sql=sql & "KeyFeatures='" & keyFeatures & "',"
sql=sql & "SuppliedAccessories='" & suppliedAccessories & "',"
sql=sql & "Weight&Dimensions='" & weight_dimensions & "',"
sql=sql & "ProductImage='" & productImageFN & "'"
sql=sql & "WHERE ProductModel='" & productModel & "'"
the error i get is:
Syntax error (missing operator) in query expression ''World's Longest Stamina CD Walkman',KeyFeatures='- G-Protection system<br>- 125 hours playback<br>- Optical digital output<br>- Joint-text capability<br>- CD Text Remote Capability<br>- CD-R/RW Playback',SuppliedAccessories='- Headphones'.
/asp/ASP/Admin_UpdateCD2.asp, line 47