changing menu

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

Guest

Hi using Access 2003, I want to change the menu name for all the reports in
an application.

I am wondering whether there a method that I can use in code for each report
in the collection of reports, to change the menu or whether I just have to
methodically work through the entire list of reports manually?

Many thanks

Jonathan
 
Jonathan said:
Hi using Access 2003, I want to change the menu name for all the reports in
an application.

I am wondering whether there a method that I can use in code for each report
in the collection of reports, to change the menu or whether I just have to
methodically work through the entire list of reports manually?


I think this will do that:

Dim dbCur As Database
Dim doc As Document
Set dbCur = CurrentDb
For Each doc In dbCur.Containers("Reports").Documents
DoCmd.OpenReport doc.Name, acDesign
Reports(doc.Name).MenuBar = "new name"
DoCmd.Close acReport, doc.Name, acSaveYes
Next doc
Set dbCur = Nothing
 

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

Back
Top