casualrich
Member
- Joined
- Dec 17, 2008
- Messages
- 12
- Programming Experience
- 1-3
hi as some of you know i have this assignment where i have had to attach a database into a vb file I have now done this bit
but now i need to add a new record into table when VB is running
but im not sure on how to do it
here is my code
but now i need to add a new record into table when VB is running
but im not sure on how to do it
here is my code
VB.NET:
Private Sub butadd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles butadd.Click
Dim myconnection As OleDb.OleDbConnection
Dim strSQL As String
'this is using parameters
strSQL = "INSERT INTO Engineers " & _
" (EngineerNO, Surname , Firstname, Mobileno) "