Custom Toolbar in Report

pd06498

Registered User.
Local time
Today, 21:56
Joined
Dec 30, 2003
Messages
80
I am having a little trouble with this.

I have two reports I generate from my database. Now I can get them to open, populate, maximize etc in preview, and I have created a custom toolbar with 'Print' and 'Close in them, and have disabled the rest of the toolbars and menu. I also have removed the Access Window in the background.

Problem is, all this works fine in design view, but when I try to view as it should, the custom toolbar does not show itself, and the only way to close the report is to click on the X at the top which closes the whole Database.

I want to be able to print from the preview and close the report only so the database goes back to my menu.

Anyone have any ideas?
 
Open the tool bar in code

DoCmd.ShowToolbar "Menu Bar", acToolbarNo
DoCmd.ShowToolbar "Database", acToolbarNo
DoCmd.ShowToolbar "Menu Bar", acToolbarNo
DoCmd.ShowToolbar "Web", acToolbarNo
DoCmd.ShowToolbar "Print Preview", acToolbarNo
DoCmd.ShowToolbar "Custom 1", acToolbarYes
 

Users who are viewing this thread

Back
Top Bottom