G
Gary
I have a form I'm using to limit report data prior to
opening a report.
In the record options I have a combobox that is bound to
the Supervisor table, allowing a user to select the
supervisor to print the report for. My problem is, that
when a supervisor is selected in the combo-box, the
results do not appear in the report- it opens with #error#
in the fields, as if the combobox was null.
I will include the line of code for reference. Should be
one line, any line breaks are unintentional.
=====CODE====
DoCmd.OpenReport "SuperRpt",
ReportDest, , "[SuperDetailQry]![SuperNm] = [Forms]!
[RptSelectFrm]![SelSuper]"
In this line, ReportDest is a defined item based on an
option group- RptSelectFrm is the active form, and
SelSuper is the combobox in question.
Any assistance is greatly appreciated!!!!
Gary
opening a report.
In the record options I have a combobox that is bound to
the Supervisor table, allowing a user to select the
supervisor to print the report for. My problem is, that
when a supervisor is selected in the combo-box, the
results do not appear in the report- it opens with #error#
in the fields, as if the combobox was null.
I will include the line of code for reference. Should be
one line, any line breaks are unintentional.
=====CODE====
DoCmd.OpenReport "SuperRpt",
ReportDest, , "[SuperDetailQry]![SuperNm] = [Forms]!
[RptSelectFrm]![SelSuper]"
In this line, ReportDest is a defined item based on an
option group- RptSelectFrm is the active form, and
SelSuper is the combobox in question.
Any assistance is greatly appreciated!!!!
Gary