H
HAZBONES
Basics:
I created a report (rpt_Area) based upon a form with 10 combo boxes. I want
all of the criteria selected on the form showing in the footer of the report
in unbound text fields 1~10.
Background:
The user can use any combination of fields on the form to create the
criteria for the report. When the user has selected all of his/her criteria,
they can then hit a "Print Report" button that will open the report
(rpt_Area) based upon the selected criteria.
Needed:
The report works fine. It opens up and is filtered by the combo box criteria
I selected on the form. What I need to know is how to make the 10 unbound
text boxes I have in the report's footer section show the criteria that was
used to filter the report.
Here is the VBA I am using on the form's command button OnClick event to
open the report:
Private Sub AreaRptbtn_Click()
Dim stDocName As String
Dim strDataFilter
strDataFilter = "1=1 "
'If statements for the form combo boxes...
stDocName = "rpt_Area"
DoCmd.OpenReport stDocName, acPreview, , strDataFilter
I created a report (rpt_Area) based upon a form with 10 combo boxes. I want
all of the criteria selected on the form showing in the footer of the report
in unbound text fields 1~10.
Background:
The user can use any combination of fields on the form to create the
criteria for the report. When the user has selected all of his/her criteria,
they can then hit a "Print Report" button that will open the report
(rpt_Area) based upon the selected criteria.
Needed:
The report works fine. It opens up and is filtered by the combo box criteria
I selected on the form. What I need to know is how to make the 10 unbound
text boxes I have in the report's footer section show the criteria that was
used to filter the report.
Here is the VBA I am using on the form's command button OnClick event to
open the report:
Private Sub AreaRptbtn_Click()
Dim stDocName As String
Dim strDataFilter
strDataFilter = "1=1 "
'If statements for the form combo boxes...
stDocName = "rpt_Area"
DoCmd.OpenReport stDocName, acPreview, , strDataFilter