mbdooly
Programmer
- Jul 11, 2007
- 1
I had posted in another forum and since discovered that this may be a more appropriate forum. my problem is as follows- using access database, version 2002 I think- using cold fusion ver 5.0 and I want to insert a record into the db using sql statements- I do use this method, I have posted as sample code below, often and never have a syntax error get thrown, but today a different story. I have now run into a situation that will not respond properly- I get a syntax error using this sql :
INSERT INTO products
(familyid,name,price,desc,servingounces,nutritiongrams,container,calories,
totalfat,totalfatdaily,saturatedfat,saturatedfatdaily,transfat,
transfatdaily,sodium,sodiumdaily,carbohydrates,carbohydratedaily,sugars,
sugarsdaily,protein,proteindaily,nutrients)
VALUES
('#Form.familyid#','#form.name#','#form.price#','#form.desc#','#form.
servingounces#','#form.nutritiongrams#','#form.container#','#form.
calories#','#form.totalfat#','#form.totalfatdaily#','#form.saturatedfat#',
'#form.saturatedfatdaily#','#form.transfat#','#form.transfatdaily#',
'#form.sodium#','#form.sodiumdaily#','#form.carbohydrates#','#form.
carbohydratedaily#','#form.sugars#','#form.sugarsdaily#','#form.protein#',
'#form.proteindaily#','#form.nutrients#')
****************************************
Please bear in mind the table has columns that are defined as text, there is no numeric or date calulations required, just plain vanilla text!
Please help!
INSERT INTO products
(familyid,name,price,desc,servingounces,nutritiongrams,container,calories,
totalfat,totalfatdaily,saturatedfat,saturatedfatdaily,transfat,
transfatdaily,sodium,sodiumdaily,carbohydrates,carbohydratedaily,sugars,
sugarsdaily,protein,proteindaily,nutrients)
VALUES
('#Form.familyid#','#form.name#','#form.price#','#form.desc#','#form.
servingounces#','#form.nutritiongrams#','#form.container#','#form.
calories#','#form.totalfat#','#form.totalfatdaily#','#form.saturatedfat#',
'#form.saturatedfatdaily#','#form.transfat#','#form.transfatdaily#',
'#form.sodium#','#form.sodiumdaily#','#form.carbohydrates#','#form.
carbohydratedaily#','#form.sugars#','#form.sugarsdaily#','#form.protein#',
'#form.proteindaily#','#form.nutrients#')
****************************************
Please bear in mind the table has columns that are defined as text, there is no numeric or date calulations required, just plain vanilla text!
Please help!