Results 1 to 5 of 5
  1. #1
    lefty2cox is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    May 2013
    Posts
    163

    Access crashing

    I have a database I'm in the process of building. Everything was going fine until one day I launched the database, which loads my main, unbound form. When I click on any button or control on the form, access closes. The next time I launch, I get a message that says "access couldn't start the last time" and gives my options for safe mode. This happens over and over. I can open and access the other objects in my database...other forms, tables, etc. But can't click on a control on the main form. I can stop it by making a change to the main form before trying to use any control. For instance, I can launch access, go to design view on the main form, add a button say...that does nothing, save the form and then everything works as it should. This trick won't work unless I make a change. If I just go to design view on the main form, save it and then go to form view and try a control, it crashes.



    I imagine the database is corrupted? I'm a novice to intermediate user.

    Thank you.

  2. #2
    lefty2cox is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    May 2013
    Posts
    163
    I should also add...every so often when I launch after the crash, I get a save window as it launches. Which seems weird to me.

  3. #3
    Edgar is offline Competent Performer
    Windows 8 Access 2016
    Join Date
    Dec 2022
    Posts
    274
    I deal with those things by isolating the problem, which is usually a form. So, change the name of your main form, create another main form with nothing in it and start adding controls until you see what could be the problem. Chances are, you'll have a new main form with no problems at the end of the process, and then you'll be able to delete the offending one. If that doesn't work then yeah, the Access gnomes will come and get you if you don't act quick.

    So it's best to copy all of your code somewhere safe, like the notepad, also all of your data in spreadsheets, possibly take screenshots of the forms and in short: back it all up.
    Then you can investigate what's going on, if you delay those things and your database becomes corrupted it's going to make it all harder.

    Once it's backed up, I make a copy of the original and work on the copy. Then:
    1. Start a new database from scratch
    2. Disable autonaming before adding anything
    3. Copy a table, test the database works fine.
    4. Copy another table and test and so on.
    5. Then do the same for queries.
    6. Then forms.
    7. Problems are usually in the forms, and since you add them one by one, you'll see the offending one quickly.

    You'll soon realize where the problem is. I've seen my databases crash because some event or control didn't exist or wasn't properly set up, but there could be something else.

  4. #4
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,581
    Hi
    You can try creating a New Blank database and then Import everything from the original.
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  5. #5
    lefty2cox is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    May 2013
    Posts
    163
    Thank you. I must not have subscribed to my own post because I wasn't notified of these replies. I just logged in to check and found them. I appreciate it. What I ended up doing was working backward. Took me a while to remember the order I had done things in but once I did, I just started undoing stuff and stubbled upon the problem.

    On of the last things I did before I noticed the problem was to add some code to the click event of the form header to hide the ribbon. I commented that code out and the problem went away. I appreciate the tips though. I've only been working on this one a couple hours a day for a couple weeks so it wasn't super complex yet.

    My back up plan up until now was that whenever I started developing, I would first back it up. But I ended up getting carried away and did a bunch of stuff. So I would have lost all of that, which would have sucked because I struggle figuring everything out. Not sure if I would have been able to do it again.

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

Similar Threads

  1. MS access crashing
    By bilalo in forum Access
    Replies: 4
    Last Post: 03-01-2019, 01:38 PM
  2. Access Crashing
    By MFS in forum Access
    Replies: 18
    Last Post: 04-03-2014, 01:21 PM
  3. Access Crashing - Need help please!
    By rave41799 in forum Programming
    Replies: 3
    Last Post: 09-10-2011, 03:28 PM
  4. access crashing
    By Dirtywindows in forum Access
    Replies: 3
    Last Post: 01-21-2011, 02:19 PM
  5. Access Crashing
    By martinjamesward in forum Access
    Replies: 2
    Last Post: 09-09-2010, 06:29 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