J
Jim
I have avoided creating record sets, mostly because i can
never get them to work, instead i used temp tables.
I have decided to learn to use record sets if it kills
me. Well, it is.
When I run the following code I get a Type Mismatch error
on the Set rstSpecialists line, why? The table contains 2
fields SpEmail txt(50) and SpID integer.
Dim varSpecialistID As Integer
Dim rstSpecialists As Recordset
Dim strSQL As String
strSQL = "SELECT * FROM tbl_SealReh_Details"
Set rstSpecialists = CurrentDb.OpenRecordset(strSQL)
rstSpecialists.MoveLast
Debug.Print rstSpecialists.RecordCount
rstSpecialists.Close
Thanks for your help,
Jim
never get them to work, instead i used temp tables.
I have decided to learn to use record sets if it kills
me. Well, it is.
When I run the following code I get a Type Mismatch error
on the Set rstSpecialists line, why? The table contains 2
fields SpEmail txt(50) and SpID integer.
Dim varSpecialistID As Integer
Dim rstSpecialists As Recordset
Dim strSQL As String
strSQL = "SELECT * FROM tbl_SealReh_Details"
Set rstSpecialists = CurrentDb.OpenRecordset(strSQL)
rstSpecialists.MoveLast
Debug.Print rstSpecialists.RecordCount
rstSpecialists.Close
Thanks for your help,
Jim