Results 1 to 5 of 5
  1. #1
    david_jones is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2022
    Posts
    3

    Multiuser DAO connection

    Hi,



    I have an Excel VBA app connecting to an Access database via DAO code (edit, insert e.t.c.). This needs to be multiuser (i.e. users can refresh recordsets and add records simultaneously). Even though the database is set to shared mode (not exclusive), it seems first person to connect via DAO in excel locks others out. Is there a way to explicitly declare shared mode in the DAO code (from the excel vba)? Or maybe there is only a way to do so using ADO?

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,932
    Excel is implicitly single user - subsequent users open it as read only with the opportunity to save as a different file.

    Really need to know a lot more about your setup and what you are trying to do

    Please clarify what you are trying to do - edit, insert what? to excel? to access? how? by manual input/alterations? using queries? copy/pasting? And frequency? is the connection required all the time or just here and there when the user needs to reference the excel file.

    Excel and text linked tables are not updateable so if you are trying to update excel - what method are you using?

    Multi user Access should be split - tables only in the backend (BE) and located on a server, everything else in the front end (FE) and a copy located on each users local drive. They should not be sharing the FE - so how is your app actually being distributed to the users?

  3. #3
    david_jones is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2022
    Posts
    3
    Nothing to do with excel... So, If I use DAO to connect to an access database, the connection object remains alive. For simplicity, lets say that I have a copy of the excel file and the user opens it, it currently won't connect to the same access database because it says database (the file) is already in use. Question is, is there a way to specify code DAO or ADO to open an access database in shared mode so that many users can connect? I have already set the database as shared.

  4. #4
    david_jones is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2022
    Posts
    3
    Seems to have been issue with particular shared drive.

    Works fine when moved to different folder.

  5. #5
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,932
    glad you got it sorted

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

Similar Threads

  1. Replies: 1
    Last Post: 06-25-2018, 04:15 PM
  2. Remote Desktop Connection Broker connection string
    By Philosophaie in forum Access
    Replies: 1
    Last Post: 09-14-2015, 03:51 PM
  3. Multiuser Access Solutions?
    By GaryE in forum Access
    Replies: 4
    Last Post: 04-16-2013, 06:15 AM
  4. Multiuser login form
    By atom in forum Forms
    Replies: 14
    Last Post: 02-14-2012, 04:45 AM
  5. Error 3045 in multiuser mdb App
    By marlan in forum Access
    Replies: 2
    Last Post: 06-22-2010, 04:40 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