有没有人了解工具栏? [英] Does anyone understand toolbars?

查看:66
本文介绍了有没有人了解工具栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我试图复制一个工具栏。我有一个表单的自定义菜单栏。试图

复制它,以便我可以修改副本并将其与另一种形式一起使用。使用

无法直接复制它,我制作了MDB的副本,重命名了工具栏,然后

然后将其作为副本重新导入原始MDB中。原始(请参阅

复制自定义菜单栏这里的线程)。在我试图修改副本之前,一切似乎都很好。当我从菜单栏添加或删除项目时,

原始版本也被修改了!它们是一个工具栏,在数据库中有两个实例




所以我回到了我开始的地方。任何人都知道如何制作一个

工具栏的副本,以便我可以修改它并使用稍微不同的版本与

另一种形式?

解决方案

Neil写道:


所以,我试图复制一个工具栏。我有一个表单的自定义菜单栏。

试图复制它,以便我可以修改副本并使用

另一种形式。由于没有直接的方法来复制它,我制作了一份

MDB,重命名工具栏,然后将其重新导入原始的

MDB作为副本原始(请参阅复制自定义菜单栏主题

此处)。在我试图修改副本之前,一切似乎都很好。当

我在菜单栏中添加或删除了项目时,原件被修改了

!它们是一个工具栏,在数据库中有两个实例。


所以我回到了我开始的地方。任何人都知道一种制作副本的方法

的工具栏,以便我可以修改它并使用与另一种形式略有不同的

版本?



我已经看到了确切的行为。我只是放弃了复制命令栏和

只需单独构建每个命令栏。我没有看到将

a命令栏上的项目复制到同一个命令栏然后更改一些关于

副本的行为的行为,但是在跨命令栏复制时它绝对会你描述的是什么

(虽然不是100%的时间)。


-

Rick Brandt,Microsoft Access MVP

电子邮件(视情况而定)至...

在Hunter dot的RBrandt com


有趣的是我可以改变

命令栏副本中顶级项目的* name *,原始名称没有变化;但如果我在顶层添加了

或删除了项目,它会反映在两个命令栏上。


我以为我会变得非常聪明并尝试别的东西。由于它是我需要修改的最后两个顶级项目,我进入了命令

bar copy,创建了两个新的顶级项目,然后按住项目从原件中拖动项目

到顶级项目的副本。这样,我没有在菜单中删除
项目,只是在栏上创建了两个新菜单。

两个新菜单没有出现在原版中。然后我删除了我从菜单栏复制的两个菜单

,我以为我家里没有:

原件有两个菜单,副本有两个全新的菜单。只有一个

问题:带有我复制过的两个菜单的原始菜单栏没有任何物品

!叹气。


所以我也放弃了。很高兴知道我不只是在这里遗漏了一些东西。


谢谢,


Neil

" Rick Brandt < ri ********* @ hotmail.comwrote in message

news:ZC ****************** @ newssvr11。 news.prodigy.n等...

尼尔写道:

个所以,我试图复制工具栏。我有一个表单的自定义菜单栏。
试图复制它,以便我可以修改副本并使用
另一种形式。由于没有直接的方法来复制它,我制作了一份MDB的副本,重命名了工具栏,然后将其作为原始副本导入原始的
MDB(请参阅复制自定义)菜单栏线程
这里)。在我试图修改副本之前,一切似乎都很好。当我从菜单栏添加或删除项目时,原件也被修改了
!它们是一个工具栏,在数据库中有两个实例。

所以我回到了我开始的地方。任何人都知道如何制作工具栏的副本,以便我可以修改它并使用与另一种形式略有不同的
版本?



我已经看到了确切的行为。我只是放弃了复制命令栏

而只是单独构建每一个。我没有看到将命令栏上的项目复制到同一命令栏然后更改

关于副本的行为的行为,但是当在命令栏上复制它时<绝对做你所描述的(虽然不是100%的时间)。


-

Rick Brandt,Microsoft Access MVP

电子邮件(视情况而定)至...

Hunter dot的RBrandt



您是否可以复制数据库。删除

中的所有未使用的对象并将其用作新数据库的基础?您应该能够以这种方式重命名和更改副本。做任何你想做的事情

" new"工具栏,然后从旧数据库导入对象,包括

旧工具栏。

-

Arvin Meyer,MCP,MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


" Neil" < no **** @ nospam.netwrote in message

news:fr ***************** @ newssvr25.news.prodigy.ne t ...


所以,我试图复制一个工具栏。我有一个表单的自定义菜单栏。试了

复制它,以便我可以修改副本并将其与另一种形式一起使用。

由于没有直接复制方法,我制作了MDB的副本,重命名为

工具栏,然后将其作为

原件的副本重新导入原始MDB(请参阅复制自定义菜单栏此处的线程)。在我试图修改副本之前,一切似乎都很好。当我在

菜单栏中添加或删除项目时,原始版本也被修改了!它们是一个工具栏

,数据库中有两个实例。


所以我回到了我开始的地方。任何人都知道如何制作一个

工具栏的副本,以便我可以修改它并使用稍微不同的版本与

另一种形式?



So, I tried to copy a toolbar. I have a custom menu bar for a form. Tried to
copy it so that I could modify the copy and use it with another form. With
no direct way to copy it, I made a copy of the MDB, renamed the toolbar, and
then imported it back into the original MDB as a copy of the original (see
"Copying a custom menu bar" thread here). Everything seemed fine until I
tried to modify the copy. When I added or removed items from the menu bar,
the original was modified as well! They were one toolbar with two instances
in the db.

So I''m back to where I started. Anyone know of a way to make a copy of a
toolbar so that I can modify it and use a slightly different version with
another form?

解决方案

Neil wrote:

So, I tried to copy a toolbar. I have a custom menu bar for a form.
Tried to copy it so that I could modify the copy and use it with
another form. With no direct way to copy it, I made a copy of the
MDB, renamed the toolbar, and then imported it back into the original
MDB as a copy of the original (see "Copying a custom menu bar" thread
here). Everything seemed fine until I tried to modify the copy. When
I added or removed items from the menu bar, the original was modified
as well! They were one toolbar with two instances in the db.

So I''m back to where I started. Anyone know of a way to make a copy
of a toolbar so that I can modify it and use a slightly different
version with another form?

I have seen that exact behavior. I just gave up on copying command bars and
just build each one separately. I have not seen the behavior copying an item on
a command bar to the same command bar and then changing something about the
copy, but when copying across command bars it definitely does what you describe
(although not 100% of the time).

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


Interesting was that I could change the *name* of the top-level item in the
command bar copy without the name changing in the original; but if I added
or removed items under the top-level, it was reflected on both command bars.

I thought I was going to be real clever and try something else. Since it''s
the last two top-level items that I need to modify, I went into the command
bar copy, created two new top-level items, and then ctrl-dragged the items
from the originals to the copies of the top-level items. This way, I didn''t
delete items within the menu, but just created two new menus on the bar. The
two new menus didn''t appear in the original. I then deleted the two menus
that I had copied from the menu bar, and I thought I was home-free: the
original had the two menus, and the copy had two brand new menus. Only one
problem: the original menu bar with the two menus I had copied had no items
under them! Sigh.

So I give up too. Good to know I''m not just missing something here.

Thanks,

Neil
"Rick Brandt" <ri*********@hotmail.comwrote in message
news:ZC******************@newssvr11.news.prodigy.n et...

Neil wrote:

>So, I tried to copy a toolbar. I have a custom menu bar for a form.
Tried to copy it so that I could modify the copy and use it with
another form. With no direct way to copy it, I made a copy of the
MDB, renamed the toolbar, and then imported it back into the original
MDB as a copy of the original (see "Copying a custom menu bar" thread
here). Everything seemed fine until I tried to modify the copy. When
I added or removed items from the menu bar, the original was modified
as well! They were one toolbar with two instances in the db.

So I''m back to where I started. Anyone know of a way to make a copy
of a toolbar so that I can modify it and use a slightly different
version with another form?


I have seen that exact behavior. I just gave up on copying command bars
and just build each one separately. I have not seen the behavior copying
an item on a command bar to the same command bar and then changing
something about the copy, but when copying across command bars it
definitely does what you describe (although not 100% of the time).

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com



Can you not make a copy of the database. Delete all the unused objects in
the copy and use that as a basis for your new database? You should be able
to rename and alter the copy in that manner. Doing whatever you wish to the
"new" toolbar, then import the objects from the old database, including the
old toolbar.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

"Neil" <no****@nospam.netwrote in message
news:fr*****************@newssvr25.news.prodigy.ne t...

So, I tried to copy a toolbar. I have a custom menu bar for a form. Tried
to copy it so that I could modify the copy and use it with another form.
With no direct way to copy it, I made a copy of the MDB, renamed the
toolbar, and then imported it back into the original MDB as a copy of the
original (see "Copying a custom menu bar" thread here). Everything seemed
fine until I tried to modify the copy. When I added or removed items from
the menu bar, the original was modified as well! They were one toolbar
with two instances in the db.

So I''m back to where I started. Anyone know of a way to make a copy of a
toolbar so that I can modify it and use a slightly different version with
another form?



这篇关于有没有人了解工具栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆