|
-
Mar 22nd, 2011, 02:02 PM
#1
Thread Starter
New Member
VB Text Box to Access Table
This is probably a simple process but I can't seem to accomplish it for the life of me. What I'm trying to do is transfer user inputted data from a Visual Basic text box into an Access database. The database consists of only one table with three fields: First Name, Last Name, and ID Number (auto-increment primary key). The VB code I have so far is this:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Student_InformationTableAdapter.Fill(Me.WritingCenterStudentInfoDat aSet.Student_Information)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.Close()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox("Record Successfully Saved")
Me.Close()
End Sub
End Class
I don't know how to code the Submit Button in order to send the data to the table. Any help would be much appreciated. Also, feel free to use small words; I'm rather unexperienced.
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
|