PC Review


Reply
Thread Tools Rate Thread

CurrentProject.Connection failure

 
 
CyberDwarf
Guest
Posts: n/a
 
      3rd Nov 2006
Help!!

Users getting connection failure errors with our ADE due to timeouts, after
being away from the workstation for a while.

I can save the connection string and create a new ADO connection from there,
BUT...
the CurrentProject.Connection is read-only, so how do I reconnect the
project? Or do I force application closure & restart?

Also... I know I can check the CurrentProject.Connection.State property,
but how do I trap the CurrentProject.Connection OnClose event globally from
within a running ADE?
I have approx 150 forms in the project, so where would I code the OnClose
event???

Any hints/suggestions greatly appreciated

TIA

Steve


 
Reply With Quote
 
 
 
 
CyberDwarf
Guest
Posts: n/a
 
      3rd Nov 2006
Mmmm...
I could use CurrentProject.OpenConnection(ConnString)
But I would still like to trap the connection close event

Any ideas?

Steve


 
Reply With Quote
 
larrylinsonjr@hotmail.com
Guest
Posts: n/a
 
      3rd Nov 2006
I think that you're crazy dog

just cleanup the connection when you open it and leave your extra crap
in there until someone re-uses that SPID




CyberDwarf wrote:
> Mmmm...
> I could use CurrentProject.OpenConnection(ConnString)
> But I would still like to trap the connection close event
>
> Any ideas?
>
> Steve


 
Reply With Quote
 
CyberDwarf
Guest
Posts: n/a
 
      3rd Nov 2006
Flattery will get you everywhere....
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I think that you're crazy dog
>
> just cleanup the connection when you open it and leave your extra crap
> in there until someone re-uses that SPID
>
>
>
>
> CyberDwarf wrote:
>> Mmmm...
>> I could use CurrentProject.OpenConnection(ConnString)
>> But I would still like to trap the connection close event
>>
>> Any ideas?
>>
>> Steve

>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CurrentProject.Connection.Execute msmuzila@gmail.com Microsoft Access 0 28th Apr 2007 05:01 PM
CurrentProject.Connection failure =?Utf-8?B?YWxleGhhdHppc2F2YXM=?= Microsoft Access VBA Modules 8 21st Aug 2006 08:02 AM
CurrentProject.Connection Jorge Viñuales Microsoft Access ADP SQL Server 2 31st Mar 2004 11:22 PM
Cannot Use CurrentProject.Connection, Muse Create a New Connection. Why? Jay Chan Microsoft Access 0 23rd Jan 2004 04:41 PM
CurrentProject.Connection Mmodrovc Microsoft Access VBA Modules 1 7th Jul 2003 10:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:53 AM.