este es el codigo para añadir el registro en la bd ,k lo hace correctamente
Código vb:
Ver originalPrivate Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text = "" Or TextBox2.Text = "" Then
MsgBox("debes de meter datos en los textbox")
TextBox1.Focus()
Else
Dim sCnn As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & " Data Source=C:\negocio\negocio.mdb"
Dim conex As New OleDb.OleDbConnection
Dim comm As New OleDb.OleDbCommand
conex.ConnectionString = sCnn
comm.Connection = conex
comm.CommandText = "INSERT INTO usuarios(usuario,contraseña,direccion,poblacion,ciudad,telefono,movil,nif) VALUES('" & TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "','" & TextBox5.Text & "','" & TextBox6.Text & "','" & TextBox7.Text & "','" & TextBox8.Text & "')"
conex.Open()
comm.ExecuteNonQuery()
conex.Close()
MsgBox("Ingreso correcto")
End If
End Sub