G
Guest
My report filter only works after the report is saved. The filter is put in
with the following coding. That appears to be correct, but when I type in the
same idential criteria with the report open it gives me all records or no
records. After I save the report with the filter criteria it seems to work...
most of the time anyway.
strFilter = "[Dateofentry] " & strbeginningdate & " AND [Dateofentry] " &
strEndingDate & " AND [Technician Name] " & strfindtech & " AND [Scribe Name]
" & strfindscribe & " AND [Examdate] " & strfindexamdate & " AND [Patient
Name] " & strfindpatname & " AND [Auditmonth] " & strfindauditmonth & " AND
[Enteredby] " & strfindenteredby
Reports![rptFindings].FilterOn = True
Reports![rptFindings].Filter = strFilter
with the following coding. That appears to be correct, but when I type in the
same idential criteria with the report open it gives me all records or no
records. After I save the report with the filter criteria it seems to work...
most of the time anyway.
strFilter = "[Dateofentry] " & strbeginningdate & " AND [Dateofentry] " &
strEndingDate & " AND [Technician Name] " & strfindtech & " AND [Scribe Name]
" & strfindscribe & " AND [Examdate] " & strfindexamdate & " AND [Patient
Name] " & strfindpatname & " AND [Auditmonth] " & strfindauditmonth & " AND
[Enteredby] " & strfindenteredby
Reports![rptFindings].FilterOn = True
Reports![rptFindings].Filter = strFilter