Results 1 to 11 of 11
  1. #1
    TheShabz is offline Court Jester
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2010
    Posts
    1,368

    Angry VBA crashes Access

    Hi everyone,



    I was working on a database yesterday that worked fine. This morning, opening a form would cause Access to crash. I opened the form up in design view and nothing happened. I closed it and then opened up the VBA editor and it crashed. It was working fine yesterday and there have been no changes to the DB (stored locally on my machine that nobody else has access to) since then. I've run compact and repair and the problem persists. Any ideas before I port my forms over to a new DB and rewrite my code?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Just try *importing* you db into a fresh new db and see if the problem follows. It just takes seconds.

  3. #3
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Was there any error what you saw before it crashed? Are to able to open and edit code modules (outside of forms/reports)? If the VBA is causing to it crash, it sounds like there might be a missing or corrupted .dll file.

    John

  4. #4
    TheShabz is offline Court Jester
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2010
    Posts
    1,368
    VBA opens fine in another db. Trying to import the forms to a fresh db causes the new db to crash as well. I don't have any complicated code in there. Everything is self-contained. No shell calls or anything of the sort. It's basically If/Then and query sequences.

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Quote Originally Posted by TheShabz View Post
    VBA opens fine in another db. Trying to import the forms to a fresh db causes the new db to crash as well. I don't have any complicated code in there. Everything is self-contained. No shell calls or anything of the sort. It's basically If/Then and query sequences.
    You can *import* one object at a time until you find the corrupt object, which would probably be easier than recreating everything from scratch.

  6. #6
    TheShabz is offline Court Jester
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2010
    Posts
    1,368
    I did. There are only 3 forms, one of which is a navigation form. Both the forms with VBA behind it crashed, as did my module. It's not a big deal to recreate. I'm more interested in the cause than a way to use them again.

  7. #7
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Quote Originally Posted by TheShabz View Post
    I'm more interested in the cause than a way to use them again.
    I understand and do not have any more suggestions. It sure sounds like everything is now toast. Maybe it has something to do with the 64 bit Access??? Sorry. If you want to zip it up and post I could try it with my 32 bit Access and see if I get the same results.

  8. #8
    TheShabz is offline Court Jester
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2010
    Posts
    1,368
    Would love to post but that would probably lead me to getting fired. I'll just file this under "shit happens" and leave it at that.

  9. #9
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Ain't computers wonderful??

  10. #10
    TheShabz is offline Court Jester
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2010
    Posts
    1,368
    Found the solution. looks like it's not just me. There is a hotfix available and will be included in SP2, whenever that is.
    http://answers.microsoft.com/en-us/o...0af271b?auth=1

    The workaround for now is to Run>PathToACCDB /decompile, close Access, and open it again.

  11. #11
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Thanks for the heads up Shabz!

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

Similar Threads

  1. Access crashes when editing VBA
    By Tingholm in forum Programming
    Replies: 5
    Last Post: 01-16-2013, 01:29 AM
  2. SQL crashes access
    By max in forum Programming
    Replies: 10
    Last Post: 01-11-2012, 03:44 AM
  3. VBA Crashes Access
    By ChuckColeman1812 in forum Programming
    Replies: 5
    Last Post: 12-12-2011, 03:33 AM
  4. Replies: 16
    Last Post: 07-20-2011, 08:01 AM
  5. Access Crashes When Wizards are Used
    By DCSwearingen in forum Access
    Replies: 6
    Last Post: 04-12-2009, 07:35 PM

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