Custom Toolbar on Popup Form

G

Guest

I have currently set a form to Popup and on Other/Toolbar have added a custom
toolbar - but it does not display the Toolbar. Any ideas why not? I've tried
Modal both Yes and No with no difference, altered the Border style and
Maximised and not - still no Toolbar. Can't find a anything posted.
Thanks for any ideas - Dika
 
G

Guest

Hi,

You may need the following on Open of the form where the toolbar is to be
displayed.

"CommandBars("YourTooldbarName").Enabled=True"
"CommandBars("YourToolbarName").Visible=True"

Hope this helps.
 
G

Guest

Hi Ash - thanks, that works half way. It does open it but on not on the Popup
form, on the form behind it!
 
G

Guest

The problem with pop up forms is they do not have toolbars across the top,
hence why its appearing on the form behind it. Maybe you need to re-consider
whether that form needs to be a pop up or not? The only other suggestion I
have is to put a couple of controls on the form, which, when clicked would
replicate the buttons which would have appeared in your toolbar.

HTH.
 
G

Guest

Thanks Ash. I was really only doing some 'playing' to see if I could speed up
some opening of what I call secondary forms - forms that are accessed from a
control button for look-up purposes. It always seemed to take so long I
thought there must be a better way. I am also trying to use as little coding
as possible as I am handing this over to a group with little Access knowledge
so want it to be as easy to understand and alter as possible. Thanks again -
yrs Dika
 
A

Albert D.Kallal

Kernow Girl said:
I have currently set a form to Popup and on Other/Toolbar have added a
custom
toolbar - but it does not display the Toolbar. Any ideas why not?

Yes, the idea of a popup form is to remain on top of all other forms,
EVEN WHEN THOSE OTHER FORMS HAVE THE FOCUS!!

So, how can setting a menu bar for a popup form make any possible sense at
all? How would any of the other forms menu bars function in this case? One
stray popup form, and all forms menus bars are toast?

Remember, a popup form is just that...a form that pops up..and REMAINS on
top while you continue to use those other forms. A popup form is thus RARELY
used for entering data. A popup form would be used to display some data, or
some help type information WHILE YOU continue to edit and use the regular
forms (which by the way *might* have menu bars....). To throw up a popup
form and specify a menu bar for it would disable the menu bars for all other
forms that you might be using in this case!!

I suspect that the use of a popup form is all wrong here. Of course, if you
accidentally set one form to popup..then it remains on top over everything
else regardless of their settings. Then, you wonder what went wrong, and
then like a dog chasing its tail, you start having to set all forms to
popup. Once this this happens, you effectually destroyed your ability to
control the flow of the application, as now all forms are going to have to
be marked as popup.

Likely what you need is a model form. A model form will keep the focus, and
the user will be forced to open more forms, or close the current form and
return back the way they came. So, a very large portion of my applications
use model forms to control the user and make sure they come back the same
way they navigated to the current form...

If you really do need a popup form here..then you can't use a menu, or tool
bar with it..and it would make no sense to be able to anyway.....

So, remove the popup setting, and evaluate what you are trying to do here.

Also, while we are at this, don't confuse model forms with dialog forms..as
they again are VERY different.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top