Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Join Date
    Jun 2022
    Posts
    8

    MDB database open and close itself in office 2019, windows 10


    I have mdb file with addin-in custom menu, it was working fine in windows 7, office 2013 and shared network environment. Now I am trying to open in windows 10 Office 2019, the file open and close itself. what could be the reason?

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,938
    Who knows.
    Use shift bypass and walk though your code from the start after setting a breakpoint.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    Join Date
    Jun 2022
    Posts
    8
    I have tried press and hold the shift key, the navigation bar open. but I try to open form, the program close itself.

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,938
    Ok, you have narrowed it down to the form.
    Open the VBA window and set a breakpoint on the first executable line in the form.
    Then open the form and take it from there.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  5. #5
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Can you upload the database and see if one of us can open it?
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  6. #6
    Join Date
    Jun 2022
    Posts
    8
    I have tried to attach the db file here but its not uploading. so i have uploaded on this link
    https://drive.google.com/file/d/1W7H...ew?usp=sharing

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Post 6 was moderated, I'm posting to trigger email notifications.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  8. #8
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,938
    Quote Originally Posted by Kashif Shahzad View Post
    I have tried to attach the db file here but its not uploading. so i have uploaded on this link
    https://drive.google.com/file/d/1W7H...ew?usp=sharing
    It is 18MB?, I am not suprised. That probably exceeds the site limit?
    Did you try and compact and then zip it?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  9. #9
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi

    The database had a virus which I removed.

    It is missing the BE linked tables on Drive - R:\CheckUpDate.Mdb

    Here fine the FE attached.
    Attached Files Attached Files
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  10. #10
    Join Date
    Jun 2022
    Posts
    8
    I tried this file too, which you attached here. still its having same issue. Tried compact and repair database, same issue.

  11. #11
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,938
    Quote Originally Posted by Kashif Shahzad View Post
    I tried this file too, which you attached here. still its having same issue. Tried compact and repair database, same issue.
    Well if it had a virus, as Mike says, then the chances are that is still on your computer.

    Get an online check with https://www.trendmicro.com/en_gb/for...housecall.html as it sounds as your AV is not very good.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  12. #12
    Join Date
    Jun 2022
    Posts
    8
    well even if it had a virus, the new file which you attached I Opened on newly formatted PC with vmware environment. I am damn sure there is virus in my pc. Moreoever, its open when I press shift, there is a form called main menu which I open it it opens too. but without shift key it open and close itself.

  13. #13
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,938
    Ok, so the shift key bypasses some code/autoexec macro?
    Perhaps for whatever reason, that code is shutting down the DB?
    I used to check that the FE was in the desired location, but I would at least give a warning message, THEN shutdown the DB.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  14. #14
    Join Date
    Jun 2022
    Posts
    8
    Its working perfectly on Few of PC's in my network (windows 7,10,11) without doing any settings. in Windows 7 environment there is no issue.

  15. #15
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,938
    I am not exactly impressed by your blase attitude of having a virus in your DB and happily uploading it for others to use?


    Luckily for me, I only have 2007, so would never be able to open it.

    I'll just bow out now as any suggestions I make, just seemed to get a 'well it works here' response?
    Those working solutions *might* be passing the startup code, in the fact they satisfy the code checks.?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Replies: 8
    Last Post: 09-02-2021, 07:06 AM
  2. Dedicated Front End on a Windows Server 2019
    By Thomasso in forum Access
    Replies: 4
    Last Post: 08-11-2021, 06:13 AM
  3. Replies: 1
    Last Post: 09-06-2020, 01:52 PM
  4. Do I want/need to upgrade to Office 2019 or 365?
    By ultrarunner2017 in forum Access
    Replies: 17
    Last Post: 01-29-2020, 03:36 PM
  5. Replies: 2
    Last Post: 08-14-2019, 04:40 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