Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I replicate minimise/maximise after removing main menu? 3

Status
Not open for further replies.

Stevehewitt

IS-IT--Management
Jun 7, 2001
2,075
GB
Hey people.

I have a custom menu that user have when they use my database. The problem is that when users run reports and maximise them they cannot minimise again as that "button" is only on the default Access main menu which I have removed from view.

Any ideas on how to replicate this?

Cheers,


Steve.
MCP Win2k
 
Simple: Create custom menu buttons and run DoCmd.Maximize or DoCmd.Restore from them. Or am I missing something?

Rick Sprague
Want the best answers? See faq181-2886
To write a program from scratch, first create the universe. - Paraphrased from Albert Einstein
 
Stevehewitt,

As a matter of course I place the following code behind all my reports:

Private Sub Report_Close()
DoCmd.Restore
End Sub

Private Sub Report_Open(Cancel As Integer)
DoCmd.Maximize
End Sub

So the user doesn't need to maximize them selves, and however the Report is closed, the retore command is executed.

Logicalman
 
Hey,

Thanks very much. I suppose I could use the DoCmd function - didn't think of that! :)

Logicalman - thank you. I don't really need the code for this problem, but I do for something else so a star for you too!

Cheers,

Steve.
 
Thanks, Rick. Works great!

---------------------------------------
The customer may not always be right, but the customer is ALWAYS the customer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top