473,385 Members | 1,357 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,385 software developers and data experts.

Relinking and closing application after network disconnected issues

547 512MB
We get lots of power/electricity failures or dips here in dark Africa UPS's are not available everywhere.
I find that my front-ends applications do not always enjoy this challenge.

I suppose one somehow has to relink to the backend, but when somebody is stuck in a combobox etc, they sometimes struggle to exit and close my app.

Any suggestion on how to deal with this best?
Maybe a "forced close button" and then relink?
Nov 5 '13 #1
3 1221
Seth Schrock
2,965 Expert 2GB
Try reading the following thread: Relinking ODBC Tables using VBA. I know that the title says ODBC, but the second post (by Neopa) also tells how to relink to Access tables. Having never experienced what happens when the link goes down while in the middle of modifying a record, I'm not sure how locked down Access becomes, but possibly a timer that checks for the connection every 10 minutes and if the link is broken you can use the code in the link above to attempt to relink the database without having to exit the program.

This is just an idea. I haven't tried anything remotely close to this before, but it may at least get you started.
Nov 6 '13 #2
NeoPa
32,556 Expert Mod 16PB
Interesting trigger question. I wonder if I need to handle this in my DB too.

I have recently got into the habit (Not from network outages but from crashes where the users just try to carry on as if nothing's happened.) of coding my forms such that any procedure which is triggered by user actions starts by calling a procedure that checks for the project still being alive. I do this by testing a Public variable that is always set when the project is alive. If you were to do something similar, you could include the code to relink your tables (In your case simply call the linked tables' .RefreshLink() method.) when it is determined that they have become unavailable.
Nov 6 '13 #3
Rabbit
12,516 Expert Mod 8TB
You can use WMI to monitor the status of a network share. More info can be found in our WMI tutorial: http://bytes.com/topic/access/insigh...n-wmi-tutorial.
Nov 6 '13 #4

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

Similar topics

2
by: Job Lot | last post by:
I am wondering how Application.Exit, Me.Dispose and End are different when it comes to closing an application (File --> Exit menu) Thanks
2
by: Michael C | last post by:
Hi all, Receiving an error when closing an application that contains the AxWebBrowser component, whenever I close the app: ".NET-BroadcastEventWindow.1.0.5000.0.4: myApplication.exe -...
0
by: Aaron Cali | last post by:
I am using Windows XP on a 2003 Domain. I am able to use VS.NET 2003 to debug my ASP.NET application when I'm connected to the network. However, when I take my laptop home I get the following...
6
by: ahmad.humyn | last post by:
I have an application in which the main form goes something like: public frmMain() { frmA frm = new frmA(); frm.show(); this.hide(); } Now that the control has been passed to frmA, how do...
0
by: esutcliffe | last post by:
Greetings, How do I close MS Outlook after use reviews the email before sending? I open MS Outlook application and create an email. But at the end of the function I do not Quit Outlook as I...
2
by: mark | last post by:
Hi, I am in the process of developing a small application that sits in the task bar and at a set interval polls an IIS web server for information. The process involves the client sending anything...
0
by: =?Utf-8?B?U3RhY3k=?= | last post by:
I have a new laptop that runs Vista that I have added to a home network of two XP desktops. I can see the host desktop, the files and the printer on the Vista laptop but I cannot access the...
0
by: =?Utf-8?B?RGFsZSBXaWxsaWFtcw==?= | last post by:
Everyone: When working with winform applications, you could check the reason for closing the window. As in this example: private void MainForm_FormClosing(object sender, FormClosingEventArgs...
0
by: raddrummer | last post by:
Hi there, I have 2 issues happening that I could really use some help with. These are probably really easy.... 1) I'm using VB in Access to generate a Visio org chart and then save it to my...
0
by: Mauser | last post by:
No answer (looking for one), but I wanted to share some information I have not seen yet on this problem in the hope it may help. The issue is that something is changing almost daily that affects...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...

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.