Link to home
Start Free TrialLog in
Avatar of mr_avril
mr_avril

asked on

How to notify user when path is not accessable due to connection lost

I want to develop a simple databse application using VB6 and one of the function is to access a network path. How to notify user if the application not able to access the path due to connection lost or network breakdown? Pop up a msg instead of application error due to cannot access path?
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The best way is to, at least, report a visual indication to the user when the path does not exist.

If Dir("\\server\somepath\", vbDirectory) = "" Then
   MsgBox "The specified path doesn't exist or is currently inaccessible!", vbCritical
End If