The Debug.Print shows the results I want to see. Lots of True and False
How do I send it to a OnClick event to filter a report? The report is bound to the query in the recordset
Rather then the getting a filtered report, I get a blank report
Code:
Public Function chkQry()
Dim rs As Recordset
Set rs = CurrentDb.OpenRecordset("SELECT * FROM reportQ")
While Not rs.EOF
Debug.Print rs!Clinician = " & openRptCbo & " And rs!dateEntered = TempVars("enterDate").Value And rs!isPaid = True
rs.MoveNext
Wend
rs.Close
Set rs = Nothing
End Function
Code:
Private Sub indPaidRptBtn_Click()
DoCmd.OpenReport "pbR", acViewReport, , chkQry = True
End Sub