G
Guest
I have a form where the user selects the month and year, the user clicks on a
button and it prints the report. VB code's attached:
DoCmd.OpenReport stDocName, acPreview, , [rptMonth] = Me.[txtMonth], ,
[rptYear] = Me.txtYear
The user now wants to have the ability to filter results based on a Name
criteria. I understand the new code would be:
DoCmd.OpenReport stDocName, acPreview, , [Month] = Me.[Month], , [Year] =
Me.Year, ,[rptName]=Me.txtName
What I would like to know before implementing is that if the user leaves
name blank, would it still pull all of the names, as if no filters were
applied? Or would I have to modify the Name combo box so that it has an
include all wildcard?
button and it prints the report. VB code's attached:
DoCmd.OpenReport stDocName, acPreview, , [rptMonth] = Me.[txtMonth], ,
[rptYear] = Me.txtYear
The user now wants to have the ability to filter results based on a Name
criteria. I understand the new code would be:
DoCmd.OpenReport stDocName, acPreview, , [Month] = Me.[Month], , [Year] =
Me.Year, ,[rptName]=Me.txtName
What I would like to know before implementing is that if the user leaves
name blank, would it still pull all of the names, as if no filters were
applied? Or would I have to modify the Name combo box so that it has an
include all wildcard?