Results 1 to 6 of 6
  1. #1
    akjandu is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    6

    Record not being saved in the table after editing it

    I have a table called "Facility Information" and I have created a form based on that table. When I make any changes in the record by using form it does not save those changes in the table.
    Record source for this form is "Facility Information" table.


    None of the following methods solved the problem:

    Using a built-in "Save" command of MS Access
    Using VBA to open the record set and saving the information into the table.


    Using VBA on close command i.e. (if the record is dirty..save it)

    I have also run "compact and repair" operation to eliminate any kind of bugs that might be effecting my code.

    Thanks in Advance

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Is it a native Access table, or linked from elsewhere?
    If you try to make the exact same data edit to the table directly, does it work?

  3. #3
    akjandu is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    6
    It is a native table and yes if I make changes in the table directly, it gets saved.

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    How exactly did you create the Form?
    Check the Properties on the form and make sure it is set to allow edits.

    You should not need to do anything to explicitly save the changes. They typically happen automatically, unless you have something like VBA code preventing that from happening.
    The only other things I can think of is if your data entries violate some Data Validation rules, or if someone/something else already has that record open and locked, but you would get an error message if that happened.

    You may want to try recreating the Form.
    Just open your Table, go to the Create menu, and click Form.

  5. #5
    akjandu is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    6
    I created a new form as you suggested and did not change anything in the form properties. It saved the record for the first three time and stopped working after that. I have no validation rules on my table. There is no other user using this database. And the strange part is that forms saves some fields of the record.
    Thank you so much for helping me.

  6. #6
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    I think without seeing the database, and trying to do exactly the steps you are performing, it is going to be difficult to decipher. If you can upload a copy of the database, and give us an example of what to try that isn't working, we can see if we can see what is going on.

    My only other thought is that is could be a corrupt database or Access install, in which case you would need to recreate the database (create a blank database and import all your old objects into it), or re-install Access and apply all patches and updates.

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

Similar Threads

  1. Replies: 2
    Last Post: 08-20-2013, 01:06 PM
  2. Action on record before PK is created (record saved)
    By chris.williams in forum Forms
    Replies: 4
    Last Post: 09-14-2012, 10:41 PM
  3. Lock Record for Editing on a Linked table
    By khalid in forum Programming
    Replies: 3
    Last Post: 06-14-2011, 08:37 AM
  4. Replies: 1
    Last Post: 04-19-2011, 04:46 PM
  5. duplicating and editing the record
    By Airis in forum Forms
    Replies: 1
    Last Post: 04-12-2010, 07:41 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