J
Josh
Here is my code:
'open connection to database
Dim ADOcon As New ADODB.Connection()
Dim rsOverdue As New ADODB.Recordset()
Dim sql As String
ADOcon.Open("allstaff_contact")
'query for high priority overdue prospects
sql = "SELECT * from contactdetail"
rsOverdue.Open(sql, ADOcon)
MsgBox(rsOverdue.RecordCount)
The message box shows -1. When I test for an open connection, that
works, so there must be something wrong with the recordset. Any ideas
what is wrong?
Thanks,
Josh
'open connection to database
Dim ADOcon As New ADODB.Connection()
Dim rsOverdue As New ADODB.Recordset()
Dim sql As String
ADOcon.Open("allstaff_contact")
'query for high priority overdue prospects
sql = "SELECT * from contactdetail"
rsOverdue.Open(sql, ADOcon)
MsgBox(rsOverdue.RecordCount)
The message box shows -1. When I test for an open connection, that
works, so there must be something wrong with the recordset. Any ideas
what is wrong?
Thanks,
Josh