PC Review


Reply
Thread Tools Rate Thread

Auto Close FE When No Network Connection

 
 
niuginikiwi
Guest
Posts: n/a
 
      29th Mar 2007
Hi, I was not sure which NG to put this post but I thought anyone
could help here.
I have a different FEs on 3 client computers and one BE on a small
LAN.
I was wondering if someone would kindly supply me a code or function
that runs when the network connection between the FE and BE drops and
automatically closes the FE application after displaying a friendly
warning saying that there is no network connectivity and the FE will
shut down.
I am a newbie on the the whole VBA and API programming so anyone out
there who can solve this mystery of mine will be superb.
Thanks,
niuginikiwi

 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      30th Mar 2007
Here's a starting point:
http://support.microsoft.com/?id=128814

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"niuginikiwi" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi, I was not sure which NG to put this post but I thought anyone
> could help here.
> I have a different FEs on 3 client computers and one BE on a small
> LAN.
> I was wondering if someone would kindly supply me a code or function
> that runs when the network connection between the FE and BE drops and
> automatically closes the FE application after displaying a friendly
> warning saying that there is no network connectivity and the FE will
> shut down.
> I am a newbie on the the whole VBA and API programming so anyone out
> there who can solve this mystery of mine will be superb.
> Thanks,
> niuginikiwi


 
Reply With Quote
 
Albert D. Kallal
Guest
Posts: n/a
 
      30th Mar 2007
Actually, I don't think there is a easy way to do this.

If you experience a break in your network connection, you going to wind up
with corrupted (damaged data).

You can not in any way consider running a system in which network
disconnections will occur.

Your start-up code can simply try to open a table, and if it fails..then you
don't have a connection.

However, detecting a connection DURING the running of the application is not
really possible, nor recommended.

Read CAREFULLY the following document and the part about why a data base
will corrupt:

http://www.members.shaw.ca/AlbertKallal/Wan/Wans.html

If you experaince a break in the conenciton, then you will have data that
does make it back to the file.

You need to elimonate the reason for the break in the conenction, not write
code to test for the occurnace of the break.

As mentieond, you will certanly have startup code that tests if you can open
up the back end database (you open a table...and error trap that).

This is really why you also can't run ms-access over a wireless network...

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
(E-Mail Removed)


 
Reply With Quote
 
Tony Toews [MVP]
Guest
Posts: n/a
 
      31st Mar 2007
"niuginikiwi" <(E-Mail Removed)> wrote:

>I was wondering if someone would kindly supply me a code or function
>that runs when the network connection between the FE and BE drops and
>automatically closes the FE application after displaying a friendly
>warning saying that there is no network connectivity and the FE will
>shut down.


From what I've seen "Disk or Network Error" which is the message when
the network connection is broken, are handled internally to Access and
the form VBA code error handling isn't even run. At least not for
the first few messages.

However what greatly concerns me is why you are getting these kinds of
messages. You shouldn't be having such problems.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Close FE When No Network Connection niuginikiwi Microsoft Access VBA Modules 3 31st Mar 2007 02:31 AM
Connection to network share never close etoel@hotmail.com Windows XP Networking 0 10th Nov 2006 03:04 PM
Remote Desktop Web Connection: Auto Close IE?? =?Utf-8?B?SiBCcmV3c3RlciAtIFVL?= Windows XP Work Remotely 3 10th Oct 2006 03:00 PM
Database update with auto connection open/close Maziar Aflatoun Microsoft ASP .NET 2 11th Aug 2005 03:51 PM
Re: Auto close the connection ??? Kelly Windows XP General 0 29th Jul 2003 11:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:02 PM.