C
cwhitmore
I would like to use a combo box to show only the reports you
want end users to view? Any suggestions?
want end users to view? Any suggestions?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I would like to use a combo box to show only the reports you
want end users to view? Any suggestions?
I would like to use a combo box to show only the reports you
want end users to view? Any suggestions?
Create a table ... "tblReports"
Store the actual report in one field
Store a user friendly short report name in the second field.
ActualRptName ShortRptName
rptStatements Statement
rptInvoices Invoice
Set the Combo Rowsource to:
Select tblReports.ActualRptName, tblReports.ShortRptName from
tblReports Order By [ShortRptName];
Set the Combo Column Count to 2.
Set the Bound column to 1.
Set the Column Widths property to
0";1"
Set the LimitTo List to Yes.
Set AutoExpand to Yes.
Code the Combo AfterUpdate event:
Do.Cmd.OpenReport Me.[ComboName] , acViewPreview
When the user selects the report name and click on it, the report
will open.
I tried your below suggestion, thanks. I receive the error message "Microsoft
Office Access can't find the Macro 'Do'.
It says the macro doesn't exist? Any thoughts?
kind regards
I would like to use a combo box to show only the reports you
want end users to view? Any suggestions?
Create a table ... "tblReports"
Store the actual report in one field
Store a user friendly short report name in the second field.
ActualRptName ShortRptName
rptStatements Statement
rptInvoices Invoice
Set the Combo Rowsource to:
Select tblReports.ActualRptName, tblReports.ShortRptName from
tblReports Order By [ShortRptName];
Set the Combo Column Count to 2.
Set the Bound column to 1.
Set the Column Widths property to
0";1"
Set the LimitTo List to Yes.
Set AutoExpand to Yes.
Code the Combo AfterUpdate event:
Do.Cmd.OpenReport Me.[ComboName] , acViewPreview
When the user selects the report name and click on it, the report
will open.
[quoted text clipped - 31 lines]I tried your below suggestion, thanks. I receive the error message "Microsoft
Office Access can't find the Macro 'Do'.
Is this your first attempt at writing code?
On the Combo Box's AfterUpdate event line write:
[Event Procedure]
Then click on the little button with 3 dots that appears on that line.
When the code window opens, the cursor will be flashing between 2
already existing lines of code.
Between those lines, write:
Do.Cmd.OpenReport Me.[ComboName] , acViewPreview
Exit the code window.
Save the changes.
Open the form and select the report.
That report will run.
I would like to use a combo box to show only the reports you
want end users to view? Any suggestions?
Create a table ... "tblReports"
Store the actual report in one field
Store a user friendly short report name in the second field.
ActualRptName ShortRptName
rptStatements Statement
rptInvoices Invoice
Set the Combo Rowsource to:
Select tblReports.ActualRptName, tblReports.ShortRptName from
tblReports Order By [ShortRptName];
Set the Combo Column Count to 2.
Set the Bound column to 1.
Set the Column Widths property to
0";1"
Set the LimitTo List to Yes.
Set AutoExpand to Yes.
Code the Combo AfterUpdate event:
Do.Cmd.OpenReport Me.[ComboName] , acViewPreview
When the user selects the report name and click on it, the report
will open.
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.