Hallo,
Ich habe mir eine Insert Into Anweisung gebaut. Diese fügt Daten aus meiner Anwendung in die Access Datenbank ein.
Leider bekomme ich ein Fehler, dass die INSERT INTO-Anweisung Syntaxfehler enthält. Nach stundenlangem suchen bin ich immer noch verzweifelt.
Ich hoffe jemand kann mir helfen! Danke
Ich habe mir eine Insert Into Anweisung gebaut. Diese fügt Daten aus meiner Anwendung in die Access Datenbank ein.
Leider bekomme ich ein Fehler, dass die INSERT INTO-Anweisung Syntaxfehler enthält. Nach stundenlangem suchen bin ich immer noch verzweifelt.
VB.NET-Quellcode
- cmd2.CommandText = "insert into ProfileData (language, startparam, sizeh, sizeb, autostart, laoddb, autoupdates, dbpath, dbbackup, dbbackuppath, dbbackupsize, sview, sgroup, stime, stimevalue, clip, compweek, workhours, workhoursa, workhoursb, autoorder) VALUES ('" & ComboBoxEdit2.SelectedItem & "','" & ComboBoxEdit1.SelectedItem & "','" & TextEdit2.Text & "','" & TextEdit4.Text & "','" & CheckEdit1.CheckState & "', '" & CheckEdit2.CheckState & "', '" & CheckEdit3.CheckState & "', '" & TextEdit1.Text & "', '" & CheckEdit4.CheckState & "', '" & TextEdit3.Text & "', '" & NumericUpDown2.Value & "', '" & ComboBoxEdit3.SelectedItem & "', '" & ComboBoxEdit4.SelectedItem & "', '" & ComboBoxEdit6.SelectedItem & "', '" & NumericUpDown1.Value & "', '" & ComboBoxEdit5.SelectedItem & "', '" & CheckEdit5.CheckState & "', '" & CheckEdit6.CheckState & "', '" & TimeEdit1.Time & "', '" & TimeEdit2.Time & "', '" & CheckEdit7.CheckState & "')"
Ich hoffe jemand kann mir helfen! Danke