ERLEDIGT
NEIN
NEIN
ANTWORTEN
2
2
ZUGRIFFE
259
259
EMPFEHLEN
-
Nabend,
also seit ca einer 3/4 Stunde sitze ich jetzt an diesem String:
Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Dim sSql As String sSql = "INSERT INTO tbl_coming ( band, " & _ "album, " & _ "bild, " & _ "bemerkungen, " & _ "autor, " & _ "label, " & _ "labellink, " & _ "bandwebsite, " & _ "datum) VALUES ('" & txt_band.Text & "'" & ", " & _ "'" & txt_album.Text & "'" & ", " & _ "'" & txt_bild.Text & "'" & ", " & _ "'" & txt_bemerkungen.Text & "'" & ", " & _ "'" & txt_autor.Text & "'" & ", " & _ "'" & txt_label.Text & "'" & ", " & _ "'" & txt_labelwebsite.Text & "'" & ", " & _ "'" & txt_bandwebsite.Text & "'" & ", " & _ "'" & txt_releasedate.Text & "'" & ")"
Ich bekomme es einfach nicht hin. Mir wird immer gesagt, dass es einen Syntax Fehler in der Anweisung gibt. Aber wo?
Vielleicht kann mir ja jemand helfen...
Grüße
-
Hallo
Band ist z.B. ein intern verwendeter Name, weiß aber nicht was damit machen kann.
Versuch´s mal so:
Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Dim sSql As String sSql = "INSERT INTO [tbl_coming] " & _ "([band], " & _ "[album], " & _ "[bild], " & _ "[bemerkungen], " & _ "[autor], " & _ "[label], " & _ "[labellink], " & _ "[bandwebsite], " & _ "[datum]) " & _ "VALUES ('" & txt_band.Text & "', " & _ "'" & txt_album.Text & "', " & _ "'" & txt_bild.Text & "', " & _ "'" & txt_bemerkungen.Text & "', " & _ "'" & txt_autor.Text & "', " & _ "'" & txt_label.Text & "', " & _ "'" & txt_labelwebsite.Text & "', " & _ "'" & txt_bandwebsite.Text & "', " & _ "'" & txt_releasedate.Text & "')"
-
jo das wars, jetzt klappt es

big thx!
Ähnliche Themen
-
Problem bei einem String (" durch \' ersetzt)
Von SlowlyDead im Forum PHPAntworten: 1Letzter Beitrag: 10.04.08, 22:46 -
Problem bei der Verknüpfung von $ und einem String
Von Acriss im Forum PHPAntworten: 2Letzter Beitrag: 14.10.07, 13:47 -
Problem mit equals bei einem gesplitteten String
Von BuZZ-T im Forum Swing, Java2D/3D, SWT, JFaceAntworten: 2Letzter Beitrag: 17.09.07, 15:51 -
Problem mit String und einem Array
Von freihsve im Forum PHPAntworten: 9Letzter Beitrag: 27.09.06, 09:45 -
Problem mit JS-Code in einem String
Von LordNikkon im Forum Javascript & AjaxAntworten: 2Letzter Beitrag: 13.09.05, 11:17





Zitieren
Login





