Professional Documents
Culture Documents
OleDb
x = Int(txtCantidad.Text)
Dim Mensaje As String = " "
cn.Open()
Dim GuardarDatos As String = "Insert Into
Dinero(Dinero,500,200,100,50,20,Mensaje)" & "Values ('" &
txtCantidad.Text & "','" & txt500.Text & "','" & txt200.Text & "','" &
txt100.Text & "','" & txt50.Text & "','" & txt20.Text & "','" &
Mensaje & "')"
Dim DataAdapter As New OleDb.OleDbDataAdapter(GuardarDatos,
cn)
DataAdapter.Fill(dt)
MsgBox(Mensaje & vbCrLf & "Se agrego correctamente el
registro", MsgBoxStyle.Information, "Mensaje")
DataAdapter.Dispose()
cn.Close()
End Sub