I'm a bit confused as to why this isn't finding the recordcount. My table "tblDatabase" has 3 records. I want it to the clone the recordset so that we do not actually alter any of the records. We just want to read them as we go through the data and then further go through items that are checked off (in this case, the field "SELECT" is set to True).
Can anyone tell me what I'm doing wrong? RecordCount keeps coming back as 0. Tried using RS1.MoveLast, MoveNext, etc... but it comes back the same. Any help in what I am doing wrong is greatly appreciated!
Set RS1 = CurrentDb.OpenRecordset("tblDatabase").Clone
RS1.MoveFirst
Debug.Print RS1.RecordCount
For i = 1 To RS1.RecordCount
If RS1.Fields("Select") = True Then
strRequestNo = strRequestNo & IIf(Len(strRequestNo) = 0, "", ",") & Str(RS1.Fields("Request No"))
strName = RS1.Fields("Name")
'Pops up the Approval Dialog for user to Name + Date Approved.
'The Code should not continue until the form is closed.
DoCmd.OpenForm "frmClientAuthorization", acNormal, , , acFormEdit, acDialog, strRequestNo & "|" & strClientName
End If
RS1.MoveNext
Next i