DB does not update using dbNavigator

  • Thread starter Thread starter eckseeker
  • Start date Start date
E

eckseeker

Hi there,
Here are the steps I do to insert data into an MS Access db:
1.make new Datasource
2.Drag a table from DataSource sidebar in VS 2005 into a winForm
3.now we have a datagridview and a dbNavigator in the form
4. F5
5.enter new data into datagrid
6.Save button
7.check the mdb file---> no Data!!!
8. the eventhandler for Savebutton is correct
9. no errors
10. there is data in grid before application is terminated.

the very same proccess for SQL db is correct and is working properly.
is there any problem with mdb file?
Thanks
Saman
 
Hi there,
Here are the steps I do to insert data into an MS Access db:
1.make new Datasource
2.Drag a table from DataSource sidebar in VS 2005 into a winForm
3.now we have a datagridview and a dbNavigator in the form
4. F5
5.enter new data into datagrid
6.Save button
7.check the mdb file---> no Data!!!
8. the eventhandler for Savebutton is correct
9. no errors
10. there is data in grid before application is terminated.

the very same proccess for SQL db is correct and is working properly.

Did you add the mdb file to your VS project? If so then I think that by
default you can end up with two copies of the file, one in the main project
directory and one in the bin directory, and every time you run the
application one of them gets copied to the other. If this is the case then
maybe you're looking at the wrong one after running the application. If this
isn't the solution, I don't have any other ideas - sorry.

Chris Jobson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top