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

  • SEARCH
  • Home
  • 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 7029009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:28:53+00:00 2026-05-28T00:28:53+00:00

Is there any way to check if an Access web database is online? I

  • 0

Is there any way to check if an Access web database is online? I am connecting to the database via OleDB and the Microsoft.ACE.OLEDB.12.0 provider. The database contains local tables as well as some web tables. I need to be able to check if the web tables are connected to the SharePoint database. I am also using the Access Interop library to perform some actions – if I can use that to check if the database is online, that works too.

  • 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-05-28T00:28:53+00:00Added an answer on May 28, 2026 at 12:28 am

    The Access client knows if it is “on” line or “off line”. So there must be some way that Access tests/checks/knows that those tables are currently disconnected (local), or in fact have a live connection to SharePoint and is active syncing data. My spider sense tells me that this status might not be exposed and if it is, I not aware of how to grab that value.

    However you can attempt to force a full web sync operation and if you are off line, then you will receive a trappable error (3021). This seems like somewhat of a kluge, and it entire possible that the status able to be checked (but I not aware how at this point in time).

    So attempting a sync will force this issue.

    eg

    On Error Resume Next
    DoCmd.RunCommand acCmdSyncWebApplication
    Debug.Print Err.Number
    

    As a heads up, acCmdSyncWebApplicaiton constant is 699

    However the above does in fact toss up a dialog box that has to be dismissed. So above is ok for user interaction button but NOT inter-op or automation without user interaction.

    The only way I know how to do this right now from Access is to call a table level procedure on SharePoint.

    The following works quite well for me:

    On Error Resume Next
    DoCmd.RunDataMacro "tblmonthtext.test1"
    Debug.Print Err.Number
    

    If we are on line and tables connected, then calling the table level procedure (it does nothing) works just fine, and errnumber = 0. If we are off line, then calling the table procedure is not possible, and thus error number = 13087.

    As noted since we are dealing with automatic connect or disconnedted tables, then my VBA code that opens up tables runs just fine regardless if you have a network connection or the application is running “off line” as opposed to “on line”. I don’t think that code knows or cares and that is much your problem.

    So I am able call that table procedure from Access. I believe the docmd object and methods are exposed as a automation (interop) to .net, so at this point in time I am offing this kluge, and it does work quite well for me. If rundatamacro is exposed, then you can use this idea.

    A another kluge (one that will likly work better for you) is to use a dumy table and add a new record. When tables are off line the autonumber PK value generated is negative values. When you are finally on line and sync, then those PK negative numbers are replaced by server side generated PK positive values.

    And WHEN you are on line and add a row, you get a positive autonumber PK value. So another possible trick here is to simply have a dummy table with no records.

    You then simply add a record, ensure it is saved. You then grab the pk value, and then I suppose just delete the row. (so the table never fills up). If the pk value is > 0, you are on line and connected. If the PK value is < 0, then you are in off line disconnected mode. So one “hint” or idea is in off line mode PK row values are going to be replaced when you finally do get a conneciton an sync, and during that off line time frame, those PK values are < 0.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to access the <compilation /> tag in a web.config file?
Is there any way to check if a variable (class member or standalone) with
Is there any way to check if it is safe to delete record from
Is there any way to check how many threads are waiting for a synchronized
Is there any way to check step by step what's going on in let's
Is there any way to check that my page is not opened in another
In SQL Server, is there any way to check whether the changes in the
I have phone number. Is there any way to check whether the phone number
This is probably just wishful thinking... Is there any way to check to see
Is there any way in clojure to check the equality of strings? i.e. I

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.