Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Gina Maylone is offline Always learning
    Windows 7 64bit Access 2013
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544

    Repair and compact deleting records???

    Good morning everyone!

    I have a client who SWEARS that everytime he compacts and repairs the front end, clients disappear. I saw which client was missing (and she was missing) - but there's no way I can verify how she went missing. Again, he said that it has happened for years - when the compact the front ends. Has anyone else had this experience? I never have.

    Access wonkiness is running rampant today! Full moon I think.



    ~Peace~

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    is this client IN the FE?
    I dont see how it can delete a record in the BE from compacting the FE.

  3. #3
    Gina Maylone is offline Always learning
    Windows 7 64bit Access 2013
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    Yes, if he compacts the front end it eats clients.

  4. #4
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Why would he ever have need to Compact the Front-End?
    The data is stored on the Back-End.

    Perhaps they have a corrupt version of the Front-End and need a new one.

  5. #5
    Gina Maylone is offline Always learning
    Windows 7 64bit Access 2013
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    The front end is new about every other day as we make changes and updates.

  6. #6
    Gina Maylone is offline Always learning
    Windows 7 64bit Access 2013
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    Also, if a front end starts acting wonky I always recommend a compact/repair - usually takes care of whatever ails it.

  7. #7
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    The front end is new about every other day as we make changes and updates.
    What kind of changes, exactly?
    Data or other things?
    How are you distributing the front-end to your client?
    Does each client have their own copy of the front-end?

  8. #8
    Gina Maylone is offline Always learning
    Windows 7 64bit Access 2013
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    He comes up with ideas all the time add a field, send an email, print instead of preview reports, etc. I usually update on my side and remote in and transfer the file to him. Yes, each client has their own front end. He copies the modified fe to their computers and relinks to the be.

  9. #9
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Hmmm....
    So, are you the one making all the changes, and then sending him the new FE? If so, I don't think there should be much of a need for him to Compact and Repair the front-end. The size of it after you send it to him should be pretty stable.

  10. #10
    Gina Maylone is offline Always learning
    Windows 7 64bit Access 2013
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    Ok, BUT is it possible that compact and repair is deleting records?

  11. #11
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    The way it is supposed to work is the following:

    When you delete records from Access, the records are really not purged from the database (they are just removed from your view). That is why deleting records does not decrease the size of a database, and databases get bloated over time. So the records are really, in essence, just flagged for deletion.
    Compacting and repairing purges all those records flagged for deletion.

    Compacting and repairing should not delete records that are NOT flagged for deletion. My guess is that there may be one of a few things going on:
    - The database is corrupt
    - There is a cascading updates/deletes situation going on, where deleting records in one table automatically deletes records in another (has nothing to do with Compact & Repair - maybe they just didn't notice it right away)
    - User error

  12. #12
    Gina Maylone is offline Always learning
    Windows 7 64bit Access 2013
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    Right. I checked the relationships, there are no cascading delete relationships. And they don't delete their contacts. I had to run an update query to get rid of really old ones recently (and the missing contact was not one of them). I was leaning toward user error myself. BUT that's not always fun to discuss with a client. I just thought that perhaps someone else had experienced this. I KNOW it's NOT supposed to happen - but seriously this guy has some of the strangest things happen to his database. And I've ruled out corruption. Everything works perfectly on my side but as soon as I give it to him - things get wonky. I inherited it that way. Thank you so much for taking the time JoeM!

  13. #13
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Might there be an Autoexec macro that runs when the database is opened, or some code in a form that opens when the database is opened, that would attempt to "clean up" the data (perhaps by deleting records with no related ones)? A compact-and-repair essentially restarts the database which would cause that macro or form code to run.

  14. #14
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    You might want to check which version of Access he is using, and compare it to which version you are creating it in.

  15. #15
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Hi, Gina

    Just a comment.

    We get data monthly for a client. Before importing the data, I do a "Compact and Repair". I did this monthly C & R in A2000 and now in A2010.
    Not once has any data been lost due to the C & R. (roughly 6000 employees in the employee table and 1 million records in the main data table.)
    And this is over the past 6 years.......

    Good luck with the client.

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Compact and Repair
    By cwitt11 in forum Access
    Replies: 4
    Last Post: 12-08-2015, 11:52 AM
  2. Compact and repair
    By data808 in forum Access
    Replies: 4
    Last Post: 03-30-2014, 03:22 AM
  3. Compact and Repair
    By Cyberice in forum Access
    Replies: 3
    Last Post: 03-18-2014, 03:22 PM
  4. Replies: 3
    Last Post: 05-04-2012, 12:04 AM
  5. Compact and repair on close
    By colotazzman in forum Access
    Replies: 2
    Last Post: 05-20-2010, 02:04 PM

Tags for this Thread

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