B
boyshey
can anyone tell me why i get differing recordcounts from the two
examples below:
Dim rstStats as New ADODB.Recordset
rstStats.Open "Select * From [Party Input]",
CurrentProject.Connection, adOpenKeySet, adLockOptimistic
'RecordCount = 5
AND
Dim rstStats as DAO.Recordset
Set rstStats = dbsStats.OpenRecordset("Select * from [Party Input]")
'RecordCount = 1
Party Input is a query with a simple inner join. When I run the query
in Access I get 5 results. Why is the DAO recordcount 5?
examples below:
Dim rstStats as New ADODB.Recordset
rstStats.Open "Select * From [Party Input]",
CurrentProject.Connection, adOpenKeySet, adLockOptimistic
'RecordCount = 5
AND
Dim rstStats as DAO.Recordset
Set rstStats = dbsStats.OpenRecordset("Select * from [Party Input]")
'RecordCount = 1
Party Input is a query with a simple inner join. When I run the query
in Access I get 5 results. Why is the DAO recordcount 5?