タイトルが示すように、ASP.NET ページから MS Access データベースに対して次の挿入クエリを実行しようとすると、構文エラーが発生します。
sqls = "INSERT INTO Invoice(Date, S_OF, Consignee_name, Vechile_type, Make, Model,
Chassis_no, Transmission, Fuel_Type, Mile_age, Colour,
Engine_type, Wheel_Drive, Accesories_options, FOB_Price,
Fright_Price, Insurance, inspection, Port_of_Loading,
Destination, Drive, Total)
VALUES('" + date1.Text + "','" + Sof.Text + "','" + consigneee.Text + "','" +
dvtype.Text + "','" + make.Text + "','" + Model.Text + "','" + chassisno.Text +
"','" + dtransmision.Text + "','" + dfueltype.Text + "','" + mileage.Text + "','"
+ dcolour.Text + "','" + enginetype.Text + "','" + dwheeldrive.Text + "','"
+ labelc.Text + "','" + FobPrice.Text + "','" + frieghtprice.Text + "','"
+ insurance.Text + "','" + inspection.Text + "','" + portofloading.Text
+ "','" + portdestination.Text + "','" + ddrive.Text + "','" + total.Text + "')"