OK, I got the code below to filter my report perfectly, thanks to help from some of you. Here's the problem. It filters the report fine, but there's nothing ON the report to say it's from Central Florida, New Jersey, or Outer Space for that matter. Is there any way to code the report so that a Text Box in the report will say Central Florida, New Jersey, etc. as applicable for the Report Title? Or am I asking too much?
Sub PrintReports(PrintMode As Integer)
On Error GoTo Err_Preview_Click
' This procedure used in Preview_Click and Print_Click Sub procedures.
' Preview or print report selected in the ReportToPrint option group.
' Then close the Print Sales Reports Dialog form.
Dim strField As String
Select Case Me.OptLoc
Case 1
strField = "Central Florida"
Case 2
strField = "New Jersey"
Case 3
strField = "North Carolina"
Case 4
strField = "North Florida"
Case 5
strField = "South Florida"
End Select
DoCmd.OpenReport "All-ChemInfo-Tomatoes", PrintMode, , "[" & strField & "]=True"
DoCmd.Close acForm, "OpenReport"