dbTalk Databases Forums  

Print Preview (Close button) Toolbar

comp.databases.ms-access comp.databases.ms-access


Discuss Print Preview (Close button) Toolbar in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Prakash
 
Posts: n/a

Default Print Preview (Close button) Toolbar - 04-14-2010 , 02:40 AM






From a form I'm invoking a report. The report opens in preview mode.
However, I'd like the user to be able to click the "close" button on
the toolbar to shut the report preview ad go back to the form. The
access toolbars and menus are switched off by me at the start of the
application in my form_load event as follows:

Private Sub Form_Load()
'Call RestoreMissingToolbars

'DoCmd.ShowToolbar "Menu Bar", acToolbarYes
CurrentDb.Properties("StartupShowDBWindow") = False
'==== Hide the database window ======
'DoCmd.SelectObject acTable, , True
'DoCmd.RunCommand acCmdWindowHide
'====================================
CommandBars.ActiveMenuBar.Enabled = False 'Turn Access' Menu Bar
OFF !!

End Sub


Am I switching off these toolbars correcty and how to get the close
button to be visible again ?

Regads,
Prakash.

Reply With Quote
  #2  
Old   
Prakash
 
Posts: n/a

Default Re: Print Preview (Close button) Toolbar - 04-14-2010 , 02:47 AM






On Apr 14, 11:40*am, Prakash <prakashwadhw... (AT) gmail (DOT) com> wrote:
Quote:
From a form I'm invoking a report. The report opens in preview mode.
However, I'd like the user to be able to click the "close" button on
the toolbar to shut the report preview ad go back to the form. The
access toolbars and menus are switched off by me at the start of the
application in my form_load event as follows:

Private Sub Form_Load()
'Call RestoreMissingToolbars

'DoCmd.ShowToolbar "Menu Bar", acToolbarYes
* * CurrentDb.Properties("StartupShowDBWindow") = False
* * '==== Hide the database window ======
* * 'DoCmd.SelectObject acTable, , True
* * 'DoCmd.RunCommand acCmdWindowHide
* * '====================================
* * CommandBars.ActiveMenuBar.Enabled = False * 'Turn Access' Menu Bar
OFF !!

End Sub

Am I switching off these toolbars correcty and how to get the close
button to be visible again ?

Regads,
Prakash.
Sorry - forgot to mention ... using Access 2003.

Reply With Quote
  #3  
Old   
Prakash
 
Posts: n/a

Default Re: Print Preview (Close button) Toolbar - 04-14-2010 , 03:12 AM



On Apr 14, 11:47*am, Prakash <prakashwadhw... (AT) gmail (DOT) com> wrote:
Quote:
On Apr 14, 11:40*am, Prakash <prakashwadhw... (AT) gmail (DOT) com> wrote:





From a form I'm invoking a report. The report opens in preview mode.
However, I'd like the user to be able to click the "close" button on
the toolbar to shut the report preview ad go back to the form. The
access toolbars and menus are switched off by me at the start of the
application in my form_load event as follows:

Private Sub Form_Load()
'Call RestoreMissingToolbars

'DoCmd.ShowToolbar "Menu Bar", acToolbarYes
* * CurrentDb.Properties("StartupShowDBWindow") = False
* * '==== Hide the database window ======
* * 'DoCmd.SelectObject acTable, , True
* * 'DoCmd.RunCommand acCmdWindowHide
* * '====================================
* * CommandBars.ActiveMenuBar.Enabled = False * 'Turn Access' Menu Bar
OFF !!

End Sub

Am I switching off these toolbars correcty and how to get the close
button to be visible again ?

Regads,
Prakash.

Sorry - forgot to mention ... using Access 2003.
Ok! Managedto figure it out !! The foll thread helped me:
http://groups.google.com/group/comp....6cd2 07fcbc04

Just one question:
Is my modus operandi in my form_load module correct for hiding the
menubar & toolbars or is there a better method ?

Rgds,
Prakash.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.