Vb.net multiline access
bizire32
Messages postés
38
Statut
Membre
-
Utilisateur anonyme -
Utilisateur anonyme -
bonjour a tous,
je voudrais savoir comment on ft pour ajouter un textbox multiline a un base de donnée access voici mon code mais il y une erreur:
Dim connect As New OleDb.OleDbConnection("provider=Microsoft.jet.OLEDB.4.0;Data Source=bdIzmarHmyed.mdb;")
connect.Open()
Dim command As New OleDb.OleDbCommand
Dim reader As OleDb.OleDbDataReader
command.Connection = connect
command.CommandText = "Insert into Soin_Diabète (Médication) values ('" + TB_Medication.Text.ToString + "');"
command.CommandType = CommandType.Text
reader = command.ExecuteReader
je voudrais savoir comment on ft pour ajouter un textbox multiline a un base de donnée access voici mon code mais il y une erreur:
Dim connect As New OleDb.OleDbConnection("provider=Microsoft.jet.OLEDB.4.0;Data Source=bdIzmarHmyed.mdb;")
connect.Open()
Dim command As New OleDb.OleDbCommand
Dim reader As OleDb.OleDbDataReader
command.Connection = connect
command.CommandText = "Insert into Soin_Diabète (Médication) values ('" + TB_Medication.Text.ToString + "');"
command.CommandType = CommandType.Text
reader = command.ExecuteReader