W
Wes McCaslin
I have this application which I'm connected to a access database.I was
wondering how could i get the information form a textbox on a form to the
fields in the database. So far this is what i have tried.
Private Sub AddCommandButton_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles AddCommandButton.Click
Me.OleDbConnection1.Open()
Me.OleDbDataAdapter1.InsertCommand.CommandText = "insert into passwords
(username,password,levels)values(aaa,bbb,3)"
Me.OleDbDataAdapter1.InsertCommand.ExecuteNonQuery()
end sub
wondering how could i get the information form a textbox on a form to the
fields in the database. So far this is what i have tried.
Private Sub AddCommandButton_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles AddCommandButton.Click
Me.OleDbConnection1.Open()
Me.OleDbDataAdapter1.InsertCommand.CommandText = "insert into passwords
(username,password,levels)values(aaa,bbb,3)"
Me.OleDbDataAdapter1.InsertCommand.ExecuteNonQuery()
end sub