Reports title from List box selection

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top