Hello,
i have an application that runs with a timer every one minute. Meanwhile, my application runs from 08h00 till 23h00. Every following morning, the first call to the recordset (ADO to odbc), i have an unspecified error. My application hangs on the first call to this recordset. I suspect that my CN(databaseconnection) is closed after several hours of inactivity. I programmed the following, however, no go :
Sel = "select * from sysparbeschikbaarheid"
If Cn.State = adStateClosed Then
Cn.Open
End If
Rs.Open Sel, Cn
My CN is opened normaly on the start of my application. Anybody a suggestion ?
Greetzzzzzz
Pedro...
i have an application that runs with a timer every one minute. Meanwhile, my application runs from 08h00 till 23h00. Every following morning, the first call to the recordset (ADO to odbc), i have an unspecified error. My application hangs on the first call to this recordset. I suspect that my CN(databaseconnection) is closed after several hours of inactivity. I programmed the following, however, no go :
Sel = "select * from sysparbeschikbaarheid"
If Cn.State = adStateClosed Then
Cn.Open
End If
Rs.Open Sel, Cn
My CN is opened normaly on the start of my application. Anybody a suggestion ?
Greetzzzzzz
Pedro...