A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Customized Menubar Problem



 
 
Thread Tools Display Modes
  #1  
Old November 30th, 2005, 10:32 AM posted to microsoft.public.access
external usenet poster
 
Posts: n/a
Default Customized Menubar Problem

Hi everyone

I have two smaller problems concerning customized Menubars (Access2000)
which are more or less related to eachother.

1) From the customize toolbar screen, Tab "Commands" I have pulled the
"Print" command into my own created command Bar menu.
I noticed that this command result in printing without getting the normal
Print dialog in which you can choose the printer.

Is there a way to get this dialog?

2) To avoid this problem I decided to pull in to my own menubar a Build-in
Menu named "File". This also contains the "Print" command. This command
results in first opening the printer dialog. Just like I want to have it.
So I thought I was happy. But then I noticed that when I start modifing the
commands in this Build-in Menu "File" (new Icon, new commands, delete
commands etc) those changes have the same impact on the normal standard
Access menubar "File".

Is there a way of prevending this?

Cheers
Marcel



  #2  
Old November 30th, 2005, 02:27 PM posted to microsoft.public.access
external usenet poster
 
Posts: n/a
Default Customized Menubar Problem

You can well steal command buttons (make sure you hold down the ctrl-key
when you drag and drop).

Thus, the above "drag and drop" will "copy" the icons, not damage the
original ones. (you REALLY need to do this!!).

Further, for the print button command, you can make your own button to show
the print dialog. Just have your button run the following:

The select object command is needed to fix a "focus" bug if you have a form
with a timer function.

For the code that pops up the printer dialog (so the user can change
printers etc).

You can use:

On Error Resume Next
DoCmd.SelectObject acReport, Screen.ActiveReport.Name
DoCmd.RunCommand acCmdPrint

The select object command is needed to fix a "focus" bug if you have a form
with a timer function. (so, remove that above select object code if this
custom menu is not for your reports).

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada

http://www.members.shaw.ca/AlbertKallal


  #3  
Old November 30th, 2005, 02:56 PM posted to microsoft.public.access
external usenet poster
 
Posts: n/a
Default Customized Menubar Problem

Thanks for the help.


"Albert D.Kallal" wrote in message
...
You can well steal command buttons (make sure you hold down the ctrl-key
when you drag and drop).

Thus, the above "drag and drop" will "copy" the icons, not damage the
original ones. (you REALLY need to do this!!).

Further, for the print button command, you can make your own button to
show the print dialog. Just have your button run the following:

The select object command is needed to fix a "focus" bug if you have a
form
with a timer function.

For the code that pops up the printer dialog (so the user can change
printers etc).

You can use:

On Error Resume Next
DoCmd.SelectObject acReport, Screen.ActiveReport.Name
DoCmd.RunCommand acCmdPrint

The select object command is needed to fix a "focus" bug if you have a
form
with a timer function. (so, remove that above select object code if this
custom menu is not for your reports).

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada

http://www.members.shaw.ca/AlbertKallal



 




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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange problem with different networks. Adam General Discussion 1 March 13th, 2005 10:17 PM
IE6 & Outlook Problem (Strange Problem)! KW Outlook Express 4 February 1st, 2005 08:31 AM
Reinstalling OE... KAR Outlook Express 24 August 21st, 2004 06:52 PM
Productkey problem when installing office 2003 on network Stefan Schreurs Setup, Installing & Configuration 1 June 1st, 2004 11:16 PM
word error mac General Discussions 1 May 6th, 2004 08:14 AM


All times are GMT +1. The time now is 06:00 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.