Ich hab ne datenbank erstellt die verbindung herstellen geht aber dann bekomm ich ein prob. mit speichern....
da kommt nämlich diese Fehlermeldung
img16.imageshack.us/my.php?image=unbenanntbjm.jpg
und kA was das fehler is =( könnt ihr mir pls weiter helfen
Peace
VB.NET-Quellcode
- Private Sub cmd_speichern_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd_speichern.Click
- Try
- con.Open()
- cmd.CommandText = "Insert Into tbl_Kunden (Vorname, Nachname, Geburstag, Telefon) Values ('" & tb_vorname.Text & "', '" & tb_nachname.Text & "', '" & tb_geb.Text & "', '" & tb_tel.Text & "')" & "Insert Into tbl_ort (PLZ, Straße, Ort, hausnummer) Values ('" & tb_plz.Text & "', '" & tb_str.Text & "', '" & tb_ort.Text & "', '" & tb_hn.Text & "')"
- anzahl = cmd.ExecuteNonQuery()
- If anzahl > 0 Then
- MsgBox("Es wurde ein Datensatz hinzugefügt")
- End If
- Catch ex As Exception
- MsgBox(ex.Message)
- End Try
- con.Close()
- End Sub
da kommt nämlich diese Fehlermeldung
img16.imageshack.us/my.php?image=unbenanntbjm.jpg
und kA was das fehler is =( könnt ihr mir pls weiter helfen
Peace