Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: SanclerPosted on 2008-01-14 at 15:21:44ID: 20658202
The "default" way of passing data between an Access database and a VB.NET application is with an OleDbDataAdapter. If you used the wizards to set up your application Dataset with reference to the Access database, those dataadapter/s may be "wrapped" in TableAdapter/s.
e.com/Prog ramming/La nguages/.N ET/ Visual_ Basic.NET/ Q_22048420 .html
Both dataadapters and tableadapters have .Update methods. If those adapters have ben properly set up, any new record that you insert into your application will be passed back as an Insert to the database by executing that .Update method. Here's a link to a thread that says - post near the end - #17871205 - a bit more about that, although with specific reference to a DataAdapter.
http://www.experts-exchang
There are alternative methods. For instance, you can self-code an OleDbCommand and call .ExecuteNonQuery on that. And, within that, you can either code the whole thing as one statement yourself or (usually preferable if you are going down that route) code it with parameters and put the values that you want to be inserted into those parameters.
I appreciate that none of the above answers your specific question. But it might explain why I am not sure that there is a single answer to what "syntax [you] will need to use". It really depends on details of your set up that your description, so far, does not make clear.
If what's said about is not enough to get you up and running, can you please come back and say, in a bit more detail, what that set-up is? How did you set up the "dataset linked to tables in an Access database"? How do you fill that dataset? If you are using a self-coded Command to do the insert, what is its commandtext and does it have parameters? Things like that.
Roger