Sudden Appearance of errors 3048 and 3704

John Waldruff 11 Reputation points
2022-02-02T21:41:01.807+00:00

I am running an Access application under Windows 11. Everything has been working fine as late as last week. This week, when I attempt to execute some VBA code, I get error 3048 ("Cannot open any more databases" from the command "set db= CurrentDB") and then when I attempt to exit, 3704 (You attempted to open a database that is already opened by user on machine). Furthermore, when it finally exits, the Access app is still loaded as you can see in Task Manager. I have to manually "End Task" to get it to close out. The same app and database set work fine on my Windows 10 machine. I fear Microsoft did something to the registry to foul things up. In attempt to get back to normal I have reloaded Office, manually downloaded latest Windows update, and downloaded all optional updates (with associated re-boots). Any ideas?

Microsoft 365 and Office | Access | Development
{count} votes

3 answers

Sort by: Most helpful
  1. Karl Donaubauer 2,061 Reputation points MVP
    2022-02-03T10:54:39.327+00:00

    Hi,

    It is an update bug in the latest build of M365. See my reply in a similar thread of the TechCommunity forum.

    Servus
    Karl


    Access News
    Access DevCon

    1 person found this answer helpful.
    0 comments No comments

  2. AAVDS AAA 6 Reputation points
    2023-06-24T09:54:24.6866667+00:00

    The answer is very very simple:

    1. You have a lot of code in your database, so it is quite a job to compact the database
    2. You have checked the box 'compact on close' in 'options/current database'
    3. if so: uncheck the box, and only compact manually

    solved. Please confirm if this also did the trick for you. Took me a lot of trials and errors to finally find the most logic solution: you close the database, and immediately access tries to compect it, while it is still open, somehow they changed the "compact" procedure to before the complete closure of the database.

    It only started appearing somewhere in 2023 for me.

    0 comments No comments

  3. Tanay Prasad 2,250 Reputation points
    2023-06-27T06:16:43.0633333+00:00

    Hi,

    There can be several factors for this issue. Here are a few suggestions from my side-

    1. Try Compacting and Repairing your access database.
    2. Temporarily disable any antivirus that might be interfering with MS Access.
    3. Make sure that your machine has sufficient resources like RAM, available to run Access and other applications.

    If these methods do not work out for you, go through this blog on how to fix error 3048 in ms access.

    Best Regards.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.