Results 1 to 11 of 11

Thread: Multi Users in Access

  1. #1

    Thread Starter
    Member
    Join Date
    May 2005
    Posts
    62

    Multi Users in Access

    I developed an Access app that was originally designed for a small number of users.

    Since then the popularity has grown and so have the number of users.

    Has anyone had any experience with multiple users (>10) simultaneously accessing a table cause performance issues?

    The app has a form with combo boxes that pull the items from a table in a backend db. Occasionally these combo boxes fail to retrieve the items.

    I am thinking too many people are accessing the back end to support the combos, but not sure.

    Please help.

  2. #2
    Lively Member
    Join Date
    Feb 2005
    Location
    California
    Posts
    97

    Re: Multi Users in Access

    I have had performance issues with 2 or more people using an access database.
    It sounds like it is time to move to real a database server.

  3. #3
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Multi Users in Access

    primfran,

    You can have performance issues with Access, but mostly it is ones code that needs to adapt to better techniques. Bad techniques show up really quick while using Access.

    Please read Database Problems in my signature for some help on this issue.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Multi Users in Access

    If users are doing updates to the data while having multiple users connected you are going to run into issues with Access. Access can only support 7-10 concurrent connections when your db is designed for updates. If your only reading or retrieving data then it supports allot more. This is a known issue with all versions of Access. You need to code your app to accomodate for this.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5
    Hyperactive Member eranfox's Avatar
    Join Date
    May 2001
    Posts
    492

    Re: Multi Users in Access

    Hello primfran,
    Did you try using this:
    VB Code:
    1. DBEngine.Idle dbRefreshCache
    Before you execute queries?

    this can help you with Multi Users/Tasking.

    The Idle Method forces the database engine to write data to disk, releasing locks on memory. (just WRITE idle and press F1 for help)

    Best Regards,
    ERAN
    Eran Fox
    ASSEMBLER,C,C++,VB6,SQL...

  6. #6
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Multi Users in Access

    Quote Originally Posted by eranfox
    Hello primfran,
    Did you try using this:
    VB Code:
    1. DBEngine.Idle dbRefreshCache
    Before you execute queries?

    this can help you with Multi Users/Tasking.

    The Idle Method forces the database engine to write data to disk, releasing locks on memory. (just WRITE idle and press F1 for help)

    Best Regards,
    ERAN
    That is for DAO right? What if he uses ADO?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  7. #7
    Hyperactive Member eranfox's Avatar
    Join Date
    May 2001
    Posts
    492

    Re: Multi Users in Access

    Quote Originally Posted by dee-u
    That is for DAO right? What if he uses ADO?
    Hello dee-u,
    Yes you are right!
    VB Code:
    1. DBEngine.Idle dbRefreshCache
    Is part of DAO.

    For ADO primfran should use Lockings (LockType)
    And He can use disconnected recordsets as well.
    He must do all calculation outside his queries and close connections when he can.

    DAO is the native language of Jet, is faster for Jet than ADO.
    ADO is Better than DAO when you use DBMS like SQLServer But when using MS-Access it is not that strong.

    Best Regards,
    ERAN
    Eran Fox
    ASSEMBLER,C,C++,VB6,SQL...

  8. #8
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Multi Users in Access

    Quote Originally Posted by eranfox
    Hello dee-u,
    Yes you are right!
    VB Code:
    1. DBEngine.Idle dbRefreshCache
    Is part of DAO.

    For ADO primfran should use Lockings (LockType)
    And He can use disconnected recordsets as well.
    He must do all calculation outside his queries and close connections when he can.

    DAO is the native language of Jet, is faster for Jet than ADO.
    ADO is Better than DAO when you use DBMS like SQLServer But when using MS-Access it is not that strong.

    Best Regards,
    ERAN
    I have used such technique before hence it is familiar...

    What I wish to clarify now is wherer did you get the knowledge that DAO is faster for Jet? I'm interested to know since I always thought ADO is faster than DAO in all areas...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  9. #9
    Hyperactive Member eranfox's Avatar
    Join Date
    May 2001
    Posts
    492

    Re: Multi Users in Access

    Hello dee-u,
    I got my knowlege only from my personal experience.
    I hate using DAO but for some reason ADO failed for me in some cases.
    Any way that was long time ago and since then i moved to MS-SQLServer.

    Best Regards,
    ERAN
    Eran Fox
    ASSEMBLER,C,C++,VB6,SQL...

  10. #10
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Multi Users in Access

    That's strange since ADO doesn't fail me with Access...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  11. #11
    Hyperactive Member eranfox's Avatar
    Join Date
    May 2001
    Posts
    492

    Re: Multi Users in Access

    Hello dee-u,

    The DAO object model is designed specifically for the Microsoft Jet database engine. Jet itself incorporates ISAM and ODBC connectivity and makes the back-end providers look as much like the native Jet engine as possible, though this comes at the expense of performance. DAO also has an ODBCDirect mode that allows it to host RDO objects and access ODBC datasources in a very efficient manner.

    The ADO object model was designed for OLE DB providers and is a much simpler and more flexible object model than DAO. However, its architectural design poses some problems when using the Microsoft Jet OLE DB provider, and it is more limited than DAO in Jet functionality it supports.
    Taken from :
    http://support.microsoft.com/kb/q225048/

    So, maybe you didnt have problems with ADO and JET but i did and thats history...

    Have a NICE day,
    ERAN
    Eran Fox
    ASSEMBLER,C,C++,VB6,SQL...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width