PC Review


Reply
Thread Tools Rate Thread

Checking for Network Connectivity

 
 
Staats
Guest
Posts: n/a
 
      16th Feb 2006
Good Morning All! I have a quick question...
I recently have been developing a DB to use both in the office and in
the field with laptops. I have synchroniztion and replication
programatically taken care of using JRO replication. I also have worked
out functions to re-assign the linked tables in the front-end DB to
either the local DB (on C:\) or to the network
(\\itcfcs004\xxx\xxx\xxxxx) - but I need some help in determining if
the network drive is available. Thanks!
~Garrett

 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmVycnkgV2hpdHRsZQ==?=
Guest
Posts: n/a
 
      16th Feb 2006
If the network drives were mapped, you could use the Dir() function to check
on their existence. I don't think that Dir will work with UNCs.

For example Dir("c:\your.mdb") will return "your.mdb" if the file is there.
If not, Dir returns a zero-length string ("").
--
Jerry Whittle
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Staats" wrote:

> Good Morning All! I have a quick question...
> I recently have been developing a DB to use both in the office and in
> the field with laptops. I have synchroniztion and replication
> programatically taken care of using JRO replication. I also have worked
> out functions to re-assign the linked tables in the front-end DB to
> either the local DB (on C:\) or to the network
> (\\itcfcs004\xxx\xxx\xxxxx) - but I need some help in determining if
> the network drive is available. Thanks!
> ~Garrett
>
>

 
Reply With Quote
 
Douglas J. Steele
Guest
Posts: n/a
 
      16th Feb 2006
Check what Randy Birch has at
http://vbnet.mvps.org/code/network/isnetworkalive.htm

(Obligatory Warning: Randy's site is aimed at VB Programmers. Due to
significant differences in the controls available for forms in VB and in
Access, many of his examples won't port directly into Access. Taking a quick
look at that page, though, I don't think there should be any issues)

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Staats" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Good Morning All! I have a quick question...
> I recently have been developing a DB to use both in the office and in
> the field with laptops. I have synchroniztion and replication
> programatically taken care of using JRO replication. I also have worked
> out functions to re-assign the linked tables in the front-end DB to
> either the local DB (on C:\) or to the network
> (\\itcfcs004\xxx\xxx\xxxxx) - but I need some help in determining if
> the network drive is available. Thanks!
> ~Garrett
>



 
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
Checking RDC Connectivity Cosmic Cruizer Windows XP Work Remotely 2 24th Nov 2008 03:41 AM
Checking for db connectivity =?Utf-8?B?Qmx1ZW1lbA==?= Microsoft ADO .NET 2 18th Oct 2006 02:10 AM
Checking Users Connectivity prabhupr@hotmail.com Microsoft ASP .NET 0 20th Mar 2006 05:24 AM
Re: Network Warnings and Network Connectivity Changes Diane Poremsky [MVP] Microsoft Outlook Discussion 0 27th Jun 2004 04:11 AM
Re: Network Warnings and Network Connectivity Changes Helen Tasky Microsoft Outlook Discussion 1 26th Jun 2004 07:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:52 AM.