Question : Syntax error (missing operator) in query expression

Hi, can anybody tell me what's wrong with this SQL? Is driving me crazy already.
I keep getting the Syntax error (missing operator) in query expression.
Code Snippet:
1:
insert into Apparel ([seller-id], [mfg-name], [mfg-part-number], [seller-sku], [title], description, [main-image], weight, features, msrp, [category-id], keywords, [product-set-id], [Age Segment], [Apparel Material],Color,[Footwear Size (Female US)],[Footwear Size (Male US)], [Footwear Type],[Footwear Width],[Trend/Style]) values ('123456', 'Nike', 'NIKE7082/B_6', 'NIKE7082/B_6', 'Nike 3 1/2" P/F Black Pu Shoes w/Clip-on Bows', 'Nike Women's Shoes', 'http://www.nike.com/pic/nike/7082.jpg', '6', 36.95, '52.99', '0034', 'NIKE|Gothic|Goth', 'Adult / Teen', 'NIKE/7082/B', 'PU/Matte', 'Black', '6', '8', 'Fashion', 'M', 'Gothic')

Answer : Syntax error (missing operator) in query expression

>I don't want the double quotation to go into the database.
putting '' inside the sql string will make just 1 single ' to be saved, this is a syntax "issue"

you will have to duplicate the single quote inside the value, before putting the entire sql together, and not afterwards.


1:
strSQL= " INSERT INTO ...  VALUES ('" & replace(yourvariable, "'", "''") & "', .... ) "
Random Solutions  
 
programming4us programming4us