Changing switchboard links

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to change the file name of an Access report. When I do, I can't open
the report from the switchboard. How do I change the link so it opens the
report with the new name?
 
I want to change the file name of an Access report. When I do, I can't open
the report from the switchboard. How do I change the link so it opens the
report with the new name?

From what switchboard?
One you created yourself using an unbound form with command buttons.
Change the click event of the command button from:
DoCmd.OpenReport "OldReportName"
to:
DoCmd.OpenReport "NewReportName"

or if the code was written by the command button wizard, change the
name of the stDocName variable:
stDocName = "NewReportName"

If this is the switchboard created by the built-in access Switchboard
Manager, change the report name in the Switchboard Items table's
Argument field.
 

Ask a Question

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.

Ask a Question

Similar Threads


Back
Top