add function to custom toolbar
I have yet another question.
If I create a custom toolbar to use in my database, is it possible to create a funcion (in a module or anywhere else (I don't know, that's why I'm asking)) that will do the following action:
open the form (MAXIMIZED) that is linked to the 'button' of this custom toolbar and close the form I was working on when I pressed this button.
So if I'm working on 'form A' and I press the button 'open form F' on the toolbar, I would want for exemple 'form F' to open and 'form A' to close. If I'm working on 'form C' and I press the same button 'open form F', 'form F' as to open, but now 'form C' has to close...
The toolbar is the same in every form except the main menu where I do not need this toolbar, because the main form as some action buttons. I want to use the toolbar on the other forms, because the action buttons will take to much space on the forms.
Does anyone understands what I mean? Is this possible? If yes, what should be the function to use? Could you write it in detail please...
Thanks
|