473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Work Offline "if" SharePoint Connection hangs/fails

Brilstern
208 100+
Issue: SharePoint hangs (not exactly offline so MS Access does not switch to offline mode) and Access freezes on open.

Details: When my Access DB opens, it is prompted for a user to establish who is using the database to use in emailing/logging. This data is referenced from an online table (SharePoint) that requires authentication.

Check out this link for details on the authentication.

Question: My envisioned solution is to open the database and for it to capture the hang into an error handler; then move to an offline version of the database to allow the user to continue working when the SharePoint site is unavailable. How might I accomplish this?

Sudo Code:
Expand|Select|Wrap|Line Numbers
  1. User opens database
  2. Authentication prompt pops up
  3. If user can't/doesn't authenticate within "time"
  4. Cancel authentication and work offline
I know this might require me to change where the data lives for the "logged in" user, but is this possible?

I have looked {elsewhere} as an option, but I am not having any luck with forcing SharePoint to work offline.
Jan 2 '19 #1
2 1252
NeoPa
32,556 Expert Mod 16PB
I'm guessing, from the wording of the title, that you are not aware of a way to determine or capture when it is that the site is unavailable. I'm guessing that if it simply hangs then you have nothing to work with as that's a baseline requirement for handling such a situation.

Other people may know more of course, but that would seem to me to be the starting point of the whole issue. Without that the rest is academic.
Jan 3 '19 #2
twinnyfo
3,653 Expert Mod 2GB
Stevan,

My experience has been that when I have accessed a SP library in a manner other than “using SharePoint”, the access will time out after a certain amount of inactivity on the site. I don’t know if this is due to my network nerds or server settings or a SharePoint feature.

Just thinking out loud here, but perhaps there is a way for your DB to somehow “ping” the SP library using a form’s Timer Event, maybe just to access some random data. This might keep the connection “open”? I don’t know enough about how SP’s connections work (and wee’ve discussed some of these challenges previously, I know).

Don’t know if that will hepp.
Jan 3 '19 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Davey | last post by:
I have an MS Access 2003 database that uses a SQL Server 2000 database as it's back-end. The database runs well most of the time but if the users dont use the database for a period of time (approx...
0
by: Matt | last post by:
Hello Everyone, I am creating my own web browser in Visual C#. I have a button called Work Offline. What code should I add to the button to perform the Work Offline Function. I am talking about...
0
by: Mark Kamoski | last post by:
Hi-- How can one detect, programmatically, if an application is set to "work offline"? The situation is this. I have a project hosted at a site on the web. When I am developing locally, I...
0
by: ASPDeveloper12345 | last post by:
I have web application that exists on a remote server. I can debug the project remotely without any problems. Since we have many developers, I would like to debug the application locally, so I...
1
by: byrd48 | last post by:
I'm having a heck of a time debugging my apps in visual studio. Everything will be going fine, then when I run a debug, I'll get that Internet Explorer window asking me to connect to the internet. ...
0
by: gm | last post by:
Immediately after generating the Access application from the Source Safe project I get: "-2147467259 Could not use ''; file already in use." If Access database closed and then reopened I get:...
2
by: breadon | last post by:
Hello there Am having problems with: Set cnn = New ADODB.Connection ........ With cnn .ConnectionString = CurrentProject.Connection .Open End With
0
by: jeff.dyke | last post by:
I am using ftplib in some code that does exactly what you would expect. It ftp's files. Its running inside a service running on windows xp and windows 2003 servers, approximately 20 installations...
1
by: ErikJL | last post by:
I have a simple webservice that performs a SELECT query against a database, and then an INSERT statement on the same database/table. The problem arises at the time when we create the second OleDB...
1
by: rishikesh | last post by:
can anyone tell me how to disable or hide file-> work offline item using javascript....?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.