sonicamps
asked on
Entering data into an access database
Hi all:
I attempting to enter data into access database from a textbox control. I am able to bind the textbox control to a specific field in the database, but after that I don't know how to get the data to move to the database. Basically I am trying to get the text from the textbox1 into the binded field in the database. If there are any questions please ask. Here is the code for the form so far.
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
TextBox1.Text = ""
DataSet11.Clear()
OleDbDataAdapter1.Fill(Dat aSet11)
End Sub
Private Sub OleDbDataAdapter1_RowUpdat ed(ByVal sender As System.Object, ByVal e As System.Data.OleDb.OleDbRow UpdatedEve ntArgs)
End Sub
Private Sub DataGrid1_Navigate(ByVal sender As System.Object, ByVal ne As System.Windows.Forms.Navig ateEventAr gs) Handles DataGrid1.Navigate
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
End Sub
Private Sub RadioButton1_CheckedChange d(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChange d
If RadioButton1.Checked Then
TextBox1.Text = "GM"
End If
End Sub
Private Sub RadioButton2_CheckedChange d(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton2.CheckedChange d
If RadioButton2.Checked Then
TextBox1.Text = "Ford"
End If
End Sub
Private Sub RadioButton3_CheckedChange d(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton3.CheckedChange d
If RadioButton3.Checked Then
TextBox1.Text = "Toyota"
End If
End Sub
End Class
I attempting to enter data into access database from a textbox control. I am able to bind the textbox control to a specific field in the database, but after that I don't know how to get the data to move to the database. Basically I am trying to get the text from the textbox1 into the binded field in the database. If there are any questions please ask. Here is the code for the form so far.
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
TextBox1.Text = ""
DataSet11.Clear()
OleDbDataAdapter1.Fill(Dat
End Sub
Private Sub OleDbDataAdapter1_RowUpdat
End Sub
Private Sub DataGrid1_Navigate(ByVal sender As System.Object, ByVal ne As System.Windows.Forms.Navig
End Sub
Private Sub TextBox1_TextChanged(ByVal
End Sub
Private Sub RadioButton1_CheckedChange
If RadioButton1.Checked Then
TextBox1.Text = "GM"
End If
End Sub
Private Sub RadioButton2_CheckedChange
If RadioButton2.Checked Then
TextBox1.Text = "Ford"
End If
End Sub
Private Sub RadioButton3_CheckedChange
If RadioButton3.Checked Then
TextBox1.Text = "Toyota"
End If
End Sub
End Class
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
me.bindingcontext(DataSet1
OleDbDataAdapter1.Update(d