954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Inserting a new Access Database Record

Good day, I have been trying to add a new record to the Access Database that has already been connected to the Visual Basic Application (Using Visual Studio 2005) that I have been developing, using the DataSource and the DataAdapter objects, though I'm able to add an Insert query and run it, but the record is not saved in the related database at all.

Can you give me some hints and directions as how to solve the above mentioned problem, thanks.

SeekAnswers
Newbie Poster
20 posts since Mar 2006
Reputation Points: 10
Solved Threads: 0
 

import necessary header files
chek whether dataadapter's & other datasets are instantiated properly.
create requisite tables in db

mail for further help at [email]pwy_20002001@yahoo.co.in[/email]

jaay
Newbie Poster
5 posts since Aug 2006
Reputation Points: 10
Solved Threads: 0
 

I'm sorry, I don't quite get you at all....

I have checked all the necessary files and objects, they are all in order, I have followed the exact instructions given in the MSDN, regarding on the matters on how to connect to a local Microsoft Access Database, but it seems that only the "Select" statement is able to work, the other statements, e.g. Insert, Delete and Update etc, are not able to work at all, though the DataSet object had been changed, but it is not saved to the database connected at all.....8'(

Can you give me or direct me to some samples in which a VB Application can insert a new record into a locally connected Access Database?

Thanks for your time and help...

SeekAnswers
Newbie Poster
20 posts since Mar 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You