Copying a custom menu bar

Copying a custom menu bar

am 03.11.2007 04:39:55 von DM McGowan II

I have a form that has its own custom menu bar in Access 2000. I'd like to
make a copy of the menu bar and use it with another form. How can I do this?
Thanks.

Re: Copying a custom menu bar

am 03.11.2007 05:11:50 von Tom van Stiphout

On Fri, 2 Nov 2007 22:39:55 -0500, "Neil" wrote:

Set the MenuBar property of that other form to the same value.
MenuBars are a global resource.

-Tom.


>I have a form that has its own custom menu bar in Access 2000. I'd like to
>make a copy of the menu bar and use it with another form. How can I do this?
>Thanks.
>

Re: Copying a custom menu bar

am 03.11.2007 05:17:07 von Stuart McCall

"Neil" wrote in message
news:y4SWi.4015$Nz7.799@nlpi070.nbdc.sbc.com...
>I have a form that has its own custom menu bar in Access 2000. I'd like to
>make a copy of the menu bar and use it with another form. How can I do
>this? Thanks.

Right click on any toolbar and select Customize. Click the 'New' button and
give it a name, then Ctrl-drag your controls from the old to the new
toolbar.

Re: Copying a custom menu bar

am 03.11.2007 06:27:58 von DM McGowan II

No, what I meant is that I need a copy of the menu bar to its own menu bar.
After I make the copy, I'm going to tweak it for the other form. But most of
the items will be the same. So I want to copy the menu bar to a new menu
bar, then modify it a bit, and use it with the second form.

"Tom van Stiphout" wrote in message
news:95tni3dlqp8drd094a3v586ilnr7ptf09q@4ax.com...
> On Fri, 2 Nov 2007 22:39:55 -0500, "Neil" wrote:
>
> Set the MenuBar property of that other form to the same value.
> MenuBars are a global resource.
>
> -Tom.
>
>
>>I have a form that has its own custom menu bar in Access 2000. I'd like to
>>make a copy of the menu bar and use it with another form. How can I do
>>this?
>>Thanks.
>>

Re: Copying a custom menu bar

am 03.11.2007 06:30:43 von DM McGowan II

Yeah, there are a lot of menu items and submenu items, and I was hoping to
avoid all that hassle.

I found a way to do it, indirectly. Was hoping for a more direct approach,
but this way worked.

I made a copy of the MDB file, went into the copy, and renamed the menu bar
that I wanted to copy to a different name. Then, in the original MDB I did
an Import from the MDB copy, importing only menu bars and tool bars. Since
all the menu bars and toolbars are the same name as in the original, they
don't import. The only thing that imports is the renamed menu bar, which
becomes a copy of the original in the MDB file.

So that worked. But a simple Copy Toolbar function would have been nice. :-)

Thanks,

Neil


"Stuart McCall" wrote in message
news:fggsol$nd3$1$8300dec7@news.demon.co.uk...
> "Neil" wrote in message
> news:y4SWi.4015$Nz7.799@nlpi070.nbdc.sbc.com...
>>I have a form that has its own custom menu bar in Access 2000. I'd like to
>>make a copy of the menu bar and use it with another form. How can I do
>>this? Thanks.
>
> Right click on any toolbar and select Customize. Click the 'New' button
> and give it a name, then Ctrl-drag your controls from the old to the new
> toolbar.
>
>
>
>
>

Re: Copying a custom menu bar

am 05.11.2007 03:29:03 von josephmendez

"Neil" escribió en el mensaje
news:y4SWi.4015$Nz7.799@nlpi070.nbdc.sbc.com...
>I have a form that has its own custom menu bar in Access 2000. I'd like to
>make a copy of the menu bar and use it with another form. How can I do
>this? Thanks.
>

Re: Copying a custom menu bar

am 10.11.2007 13:20:22 von DM McGowan II

I take back what I wrote about finding a way to do it by copying the MDB,
renaming the toolbar, and then importing it into the MDB as a new toolbar.
While that technically worked, it really didn't. I ended up with two copies
of the same toolbar, inextricably linked! When I modify one, the other is
modified as well!

In other words: I started out with ToolbarA. Copied the MDB and renamed it
to ToolbarB. Imported toolbars from the copy and then had a ToolbarA and a
ToolbarB in the original db. However, when I add or remove an item from
ToolbarB, ToolbarA is modified. So they're really the same toolbar, but with
two instances in the database. Very weird.

Anyway, just thought I'd post it here as a follow-up.

Neil


"Stuart McCall" wrote in message
news:fggsol$nd3$1$8300dec7@news.demon.co.uk...
> "Neil" wrote in message
> news:y4SWi.4015$Nz7.799@nlpi070.nbdc.sbc.com...
>>I have a form that has its own custom menu bar in Access 2000. I'd like to
>>make a copy of the menu bar and use it with another form. How can I do
>>this? Thanks.
>
> Right click on any toolbar and select Customize. Click the 'New' button
> and give it a name, then Ctrl-drag your controls from the old to the new
> toolbar.
>
>
>
>
>