G
gumby
I have a report that is filtered by a list box selection. I would like
the selection to show up in the report title auto populate.
With Reports![rptRMC Department_Custom_HR_Status]
.Filter = strFilter
.FilterOn = True
.txtReportTitle.Value = _
"RMC Staffing Report - " & Format(Date, "dd mmm yyyy") _
& vbCrLf & "Department: " &
[Forms]![frmReportFilterRMC]![lstDepartment]
End With
I have also tried & vbCrLf & "Department: " & strDepartment (This
shows the selected item as a filter statement. "IN (HR)"
This works fine if I use a combo box, but I would like to use a
listbox.
David
the selection to show up in the report title auto populate.
With Reports![rptRMC Department_Custom_HR_Status]
.Filter = strFilter
.FilterOn = True
.txtReportTitle.Value = _
"RMC Staffing Report - " & Format(Date, "dd mmm yyyy") _
& vbCrLf & "Department: " &
[Forms]![frmReportFilterRMC]![lstDepartment]
End With
I have also tried & vbCrLf & "Department: " & strDepartment (This
shows the selected item as a filter statement. "IN (HR)"
This works fine if I use a combo box, but I would like to use a
listbox.
David