I'm having a bit of trouble with this insert statement and I'm not sure if it's cause of the autonumber field or the yes/no ones(using ACCESS)
the table has 7 columns
picID - autonnumber
vehicleID - text
PathToImage - text
front - Yes/No
left - Yes/No
right - Yes/No
back - Yes/No
vehicleID and pathtoimage are both string variables
this gives me a plain old syntax error message
"INSERT INTO tblVehicleImages ( VehicleID, PathToImage, Front, Left, Right, Back) VALUES ('" + vehicleIDNo + "','" + imagePath + "', 1, 0, 0, 0 )"
i've tried this as well (gives me "Conversion from string "INSERT INTO tblVehicleImages ( V" to type 'Double' is not valid)
"INSERT INTO tblVehicleImages ( VehicleID, PathToImage, Front, Left, Right, Back) VALUES ('" + vehicleIDNo + "','" + imagePath + "'," + 0 + "," + 0 + "," + 1 + "," + 0 + ")"
any ideas where i'm messing up?
This post has been edited by Damage: 03 September 2008 - 02:17 AM

New Topic/Question
Reply



MultiQuote





|