M
MB
I have a switchboard that has a button for Reports, the Reports switchboard
has a selection of reports. One of the reports is called "Detail by Specific
Employee." When this button is clicked, I'd like the report (in print
preview) to show for that specific employee.
Names:
Combo box: cboEmployeeName
Query: qry Specific Employee
Form: frmEmployeeLocator
Report: rpt By Specific Employee
On the Form, the "OK" command button has the following code:
Private Sub cmdOK_Click()
DoCmd.OpenQuery "qry Specific Employee"
DoCmd.Close acForm, "frmEmployeeLocator"
End Sub
The query has the following criteria under Employee Name:
[Forms]![FrmEmployeeLocator]![cboEmployeeName]
I get the correct data, but it is in database/query format and not the
report. I can't figure out the rest. I am using 2007. Please help.
Thank you!
has a selection of reports. One of the reports is called "Detail by Specific
Employee." When this button is clicked, I'd like the report (in print
preview) to show for that specific employee.
Names:
Combo box: cboEmployeeName
Query: qry Specific Employee
Form: frmEmployeeLocator
Report: rpt By Specific Employee
On the Form, the "OK" command button has the following code:
Private Sub cmdOK_Click()
DoCmd.OpenQuery "qry Specific Employee"
DoCmd.Close acForm, "frmEmployeeLocator"
End Sub
The query has the following criteria under Employee Name:
[Forms]![FrmEmployeeLocator]![cboEmployeeName]
I get the correct data, but it is in database/query format and not the
report. I can't figure out the rest. I am using 2007. Please help.
Thank you!