this is too a generic question.
though:
1. to check for internet connection:
in a module:
VB Code:
'internet connection
Public Declare Function InternetGetConnectedState Lib "Wininet" _
(ByRef dwFlags As Long, ByVal dwreserved As Long) As Long
Public Const INTERNET_CONNECTION_CONFIGURED As Long = &H40
Public Const INTERNET_CONNECTION_LAN As Long = &H2
Public Const INTERNET_CONNECTION_MODEM As Long = &H1
Public Const INTERNET_CONNECTION_PROXY As Long = &H4
Public Const INTERNET_CONNECTION_OFFLINE As Long = &H20
Public Const INTERNET_RAS_INSTALLED As Long = &H10
and the function:
VB Code:
Public Function GetInternetConnectedState() As Boolean
Dim dwFlags As Long 'Returns which Connection Type
Dim RetCode As Boolean 'If is connected
'dwreserved needs to be set to 0&
RetCode = InternetGetConnectedState(dwFlags, 0&)
Select Case RetCode
Case dwFlags And INTERNET_CONNECTION_CONFIGURED
'Local system has a valid connection to internet, but it is not currently connected.
Case dwFlags And INTERNET_CONNECTION_LAN
'Local system uses a local area network to connect to internet, which might or might not be currently connected to internet.
Case dwFlags And INTERNET_CONNECTION_MODEM
'Local system uses a modem to connect to internet.
Case dwFlags And INTERNET_CONNECTION_PROXY
'Local system uses a proxy server to connect to internet.
Case dwFlags And INTERNET_CONNECTION_OFFLINE
'Local system is in offline mode.
Case dwFlags And INTERNET_RAS_INSTALLED
'Local system has RAS installed.
End Select
GetInternetConnectedState = RetCode
End Function
2. as for the db, can't you just make them download a db and overwrite the existing one?
wc.