Internet Connection Test

  • Thread starter Thread starter Dave180
  • Start date Start date
D

Dave180

Is it possible to test for a successful internet connection say on form load
to set control parameters?
Id like to disable controls if a call to the internet would fail (I can trap
that in an err statement) but enable the control if the call would work.
Using follow hyperlinks a successful 'test call' opens the web page as
designed - not what is required here in a test for connectivity status.
Is there a Ping or something similar that I could use?
 
Take a look at what Randy Birch has at
http://vbnet.mvps.org/index.html?code/network/internetgetconnectedstate.htm
or http://vbnet.mvps.org/code/internet/ping.htm

Obligatory warning: Randy's site is aimed at VB programmers. Because there
are some significant differences between the controls available for forms in
VB and in Access, some of his code won't port directly to Access. For
instance, in the second example, he's using a control array, which isn't
possible in Access. Hopefully, though, it's obvious what he's doing, so that
you'll be able to figure out how to use the code in Access.
 
Many thanks Doug.
Dave.

Douglas J. Steele said:
Take a look at what Randy Birch has at
http://vbnet.mvps.org/index.html?code/network/internetgetconnectedstate.htm
or http://vbnet.mvps.org/code/internet/ping.htm

Obligatory warning: Randy's site is aimed at VB programmers. Because there
are some significant differences between the controls available for forms in
VB and in Access, some of his code won't port directly to Access. For
instance, in the second example, he's using a control array, which isn't
possible in Access. Hopefully, though, it's obvious what he's doing, so that
you'll be able to figure out how to use the code in Access.
 
Back
Top