I have a database in MS Access with tables linked to an SQL Server 2000. Whenever i run my code that has to do with opening these tables, i keep on getting the error message that the ODBC has timed out. This is the portion of the code that is giving the error. Please help.
...............................................................
Is there any way I could stop my ODBC Connections from TIMING OUT at tall?
PHP:
.............................................................
Set db = CurrentDb()
db.QueryTimeout = 0
[B] Set rstOutgoing = db.OpenRecordset("SELECT ANumber, Max(StartDate) AS LastCall FROM PREPAID " _
& "WHERE (BNumber <> '100' and BNumber <> '101' and BNumber <> '130' and BNumber <> '150' and BNumber <> '160') " _
& "GROUP BY ANumber ; ", dbOpenForwardOnly) [/B]
With rstOutgoing
Do While Not .EOF
currNumber = !ANumber
If IsNull(!LastCall) = True Then
'.MoveNext
LastCall = " "
Else
LastCall = !LastCall
End If
Set rstNewValue = db.OpenRecordset("SUBSCRIBER_STATUS", dbOpenTable)
With rstNewValue
.Index = "PrimaryKey"
.Seek "=", currNumber
If Not .NoMatch Then
.Edit
Is there any way I could stop my ODBC Connections from TIMING OUT at tall?
Last edited: