Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8038751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:20:23+00:00 2026-06-05T03:20:23+00:00

We have multi user frontend/backend MS Access 2010 application. We added a process that

  • 0

We have multi user frontend/backend MS Access 2010 application. We added a process that will close remote frontends when we want to do work on backend such as compact and repair. This is timer based check on table field that if has certain value will close the application.

I do two checks to see if users are connected to database:

  • i have login/logout process and can see who is still logged in (its form based so is fallible eg they close form but frontend is still open).

  • i used .ldb file viewer to see if anything is still connected

Two questions:

  • is there any possibility that a connection to backed could exist if it wasn’t viewable with ldb viewer?

  • is there any bullet proof 100% certain way to forcefully disconnect all connections from backend?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T03:20:25+00:00Added an answer on June 5, 2026 at 3:20 am

    “I do two checks to see if users are connected to database“

    If you need to open the db exclusively, you can skip the other checks and just check whether you can do it.

    Public Function CheckExclusive(ByVal pFullPath As String) As Boolean
        Dim blnReturn As Boolean
        Dim cn As Object
        Dim strConnection As String
    
    On Error GoTo ErrorHandler
    
        strConnection = "Provider=" & _
            CurrentProject.Connection.Provider & _
            ";Data Source=" & pFullPath & ";"
        Set cn = CreateObject("ADODB.Connection")
        cn.Mode = 12& ' adModeShareExclusive '
        cn.Open strConnection
        blnReturn = True
        cn.Close
    
    ExitHere:
        On Error Resume Next
        Set cn = Nothing
        On Error GoTo 0
        CheckExclusive = blnReturn
        Exit Function
    
    ErrorHandler:
        blnReturn = False
        GoTo ExitHere
    End Function
    

    Then call that function with the full path to your db file.

    If CheckExclusive("C:\SomeFolder\YourDb.mdb") = True Then
        ' do what you need here which requires exclusive access: '
        '     make backup; compact; whatever '
    End If
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have multi-thread application that I want to create a thread with different user
I'm working on a web application that will be a hosted, multi-user solution when
I have a multi-user application consisting of a flex client and blazeds/Spring/java backend -
We have multi-part install that needs a reboot to continue. We added a RunOnce
I have an multi user application with basic layouts where i want to change
I have inherited a VB6/Access application that we have developed and sold for many
I'm going to create a multi user app, so, I will have a admin
I have multi-lines textbox in c# window-base application. If user click on textbox I
I am building a multi-user web application. Each user can have their own site
So basically I have an application that works with just one user, but I'd

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.