Rainbow123
New member
- Joined
- Feb 9, 2013
- Messages
- 2
- Programming Experience
- Beginner
Hey!
I'm having problem's saving/adding data to my database, this is the code I'm using ;
Dim objRow As DataRow
objDataAdapter.Fill(objDataSet, "Admin")
objRow = objDataSet.Tables("Admin").NewRow
objRow.Item("Name") = txtName.Text
objRow.Item("Address") = txtAddress.Text
objDataSet.Tables("Admin").Rows.Add(objRow)
objDataSet.AcceptChanges()
objDataAdapter.Update(objDataSet, "Admin")
I'm not getting any errors when I debug - but the information doesn't store in my database file. Any ideas on where I'm going wrong?
I'm having problem's saving/adding data to my database, this is the code I'm using ;
Dim objRow As DataRow
objDataAdapter.Fill(objDataSet, "Admin")
objRow = objDataSet.Tables("Admin").NewRow
objRow.Item("Name") = txtName.Text
objRow.Item("Address") = txtAddress.Text
objDataSet.Tables("Admin").Rows.Add(objRow)
objDataSet.AcceptChanges()
objDataAdapter.Update(objDataSet, "Admin")
I'm not getting any errors when I debug - but the information doesn't store in my database file. Any ideas on where I'm going wrong?