|
-
Apr 23rd, 2013, 02:49 PM
#1
Thread Starter
New Member
Adding Records into Access
Hello!
I am new to VB.NET.
I am trying to add records into Microsoft access from VB. using this code!
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
Me.CustomerBindingSource.EndEdit()
Me.CustomerTableAdapter.Update(IKEADataSet.Customer)
Dim pos = Me.CustomerBindingSource.Position
Me.CustomerTableAdapter.Fill(Me.IKEADataSet.Customer)
Me.CustomerBindingSource.Position = pos
MsgBox("New Record added to the Database correctly.")
Me.CustomerBindingSource.EndEdit()
End Sub
It says the record has added but when i look into the data file...the records in to there!Please help!
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|