By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,998 Members | 2,921 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,998 IT Pros & Developers. It's quick & easy.

Checking For Internet Connection

P: n/a
I'm needing Access to check to see if the machine is connected to the
internet or not before I run a certain procedure.

What is the best way to go about this? Any articles or code snippets would
be appreciated.

Thanks,
Wes
Jan 19 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
There's an API call for it. The call is defined as follows:
Private Declare Function InternetAttemptConnect Lib "Wininet.dll"
(ByVal dwReserved as Long) As Long

It returns 0 if Internet connectivity is available, 1 if it isn't.

Jan 19 '06 #2

P: n/a
Easy enough.
Thanks Steve

"Steve" <th*********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
There's an API call for it. The call is defined as follows:
Private Declare Function InternetAttemptConnect Lib "Wininet.dll"
(ByVal dwReserved as Long) As Long

It returns 0 if Internet connectivity is available, 1 if it isn't.

Jan 19 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.