>How can I get the report to only display the employees with WORK listed?
>I did not want to change the query associated with the report.
>
>Before the report would display, a dropdown box would appear, asking what
>category the user would like to see.
Use the AfterUpdate event of the combo box to launch the report, including a
"where condition" to select only the Work records.
One question though: do you want to display all of the categories for the
selected employees (just so long as at least one of them is "Work"), or do you
just want to display those records which contain Work as a category?
John W. Vinson [MVP]
bzeyger - 15 Jan 2008 18:42 GMT
I wanted to display only the Work catagory. The user wold select an option
from a dropdown box prior to launching the report. The drop would hold the
task desired and the report should only display that task.
> >How can I get the report to only display the employees with WORK listed?
> >I did not want to change the query associated with the report.
[quoted text clipped - 10 lines]
>
> John W. Vinson [MVP]
John W. Vinson - 15 Jan 2008 20:46 GMT
>I wanted to display only the Work catagory. The user wold select an option
>from a dropdown box prior to launching the report. The drop would hold the
[quoted text clipped - 14 lines]
>>
>> John W. Vinson [MVP]
Use the AfterUpdate event of the combo box with code resembling:
Private Sub combobox_AfterUpdate()
If Not IsNull(Me!combobox) Then
DoCmd.OpenReport "YourReportName", _
WhereCondition:="[Category] = '" & Me!combobox & "'"
End If
End Sub
John W. Vinson [MVP]