I am working from home with an Access project. I have a VPN connection to a customer that times out after 15 minutes if I don't use it. If the VPN is up my code below works fine. If the VPN is down the code gets stuck for 60 seconds, checking for a folder that is not available. Is there a way to change this to say 5 seconds and "do something else".
Sub check()
Dim fso As New FileSystemObject
If fso.FolderExists("z:\abc") Then
'do something
else
'do something else
End If
End Sub