S
S Jackson
I have created a dialog form containing a list box named RptListBox.
The list box is from tblReports which contains 2 fields: RptName and
ActualName.
RptName is a user-friendly name for the report
ActualName is the actual name of the report in the db.
I want a cmd button that the user will click after they select a report that
will preview the report.
I've tried this (per someone else's advice here):
DoCmd.OpenReport RptListBox, acPreview
The error is: The expression you entered is the wrong data type for one of
the arguments.
I know I need to set some sort of variable, but I'm just learning and don't
know how.
TIA
S. Jackson
The list box is from tblReports which contains 2 fields: RptName and
ActualName.
RptName is a user-friendly name for the report
ActualName is the actual name of the report in the db.
I want a cmd button that the user will click after they select a report that
will preview the report.
I've tried this (per someone else's advice here):
DoCmd.OpenReport RptListBox, acPreview
The error is: The expression you entered is the wrong data type for one of
the arguments.
I know I need to set some sort of variable, but I'm just learning and don't
know how.
TIA
S. Jackson