Re: How to quick-check SQL connection
- From: PhilEnd@xxxxxxxxx
- Date: 19 Nov 2005 09:56:49 -0800
Try this:
If Application.CurrentProject.IsConnected Then...
I'm not sure it works with .mdb but it works fine with .adp and it's
wort to give it a try.
ZRexRider wrote:
> I'm developing an application that runs on laptops that periodically
> connect to network. I am collecting data in local tables within the
> MDB. I want to recognize the occasional network connection so I can
> upload the collected data to SQL server and retrieve updated look-up
> information.
> ...
> Dim conn As ADODB.Connection
> Set conn = New ADODB.Connection
> With conn
> .ConnectionString = CurrentProject.BaseConnectionString
> .CursorLocation = adUseClient
> .CommandTimeout = 10 ' shorten delay to 10 seconds
> .Open
> End With
.
- References:
- How to quick-check SQL connection
- From: ZRexRider
- How to quick-check SQL connection
- Prev by Date: Re: Optional Parameter for Querydef with Default Built In
- Next by Date: Re: Re: Incremental Number
- Previous by thread: Re: How to quick-check SQL connection
- Next by thread: Hiding a table contents using security
- Index(es):