Results 1 to 4 of 4
  1. #1
    Nonz is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Sep 2011
    Posts
    5

    Changes to database don't stick


    I'm developing a program using visual studio 2010 in C# and using an access 2007 database.
    When I save contents to the database, I get no errors. Also when I retrieve information from the database whilst the program is running I get no issues. Problem is once I stop the application, all the data stored whilst the application was running disappears.
    I've checked everything on the program but I don't seem to see anything wrong.
    Please help.

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    I'm not a C# developer but I have worked with Visual Studio - VB.Net.

    From what you're describing, it seems like while your program is running all the data that you are adding is getting added to your recordset which is being held in memory - and you can see it.

    It doesn't seem to me that the problem is an Access issue.

    Is it possible that your Program is not committing your changes [writing it to the access database from the recordset that is in your C# program memory] before you exit your application?

  3. #3
    Nonz is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Sep 2011
    Posts
    5
    Only to find out it really was the dataset that wasn't saving the data. There was nothing wrong with the database. Thanks

  4. #4
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    I'm glad I could be of some help!!
    But - you really figured it out on your own!!

    All the best!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Database Design for Specification Database
    By khwaja in forum Database Design
    Replies: 2
    Last Post: 11-24-2011, 03:58 AM
  2. Replies: 20
    Last Post: 08-08-2011, 01:34 PM
  3. Replies: 3
    Last Post: 05-15-2011, 10:52 PM
  4. Replies: 1
    Last Post: 11-03-2010, 10:41 AM
  5. Replies: 4
    Last Post: 08-12-2010, 08:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums