Toolbar help

  • Thread starter Thread starter Ashish Nanda
  • Start date Start date
A

Ashish Nanda

Can someone tell me if i want to look in the code in
Visual Basic of toolbar i have designed in Access(A
customized ) One , How can i do that.

I just need to make a view changes but i want to do it by
looking at the code for the toolbar.

Best Regards,
Ashish
 
There is no code behind a tool bar.

Just like there is no code behind a form. You can certainly add code to a
form, but there is not "code" that you can look at for a form. It is a
internal structure that we don't see. That structure is what creates the
form (so, no, there is no code for a form, and there is no code for a menu
bar).

However, as mentioned, you CAN add code to a form, and in the case of a menu
bar that you create, you can have that menu bar call your code. However, if
you have not made any code that the menu bar calls, then of course there is
no code to see.

So, there is no code to seen in a form that draws the text box, or the combo
box. That is a internal structure. And the same applies to a menu bar.

If you want to create some code for a menu bar, then you can certainly place
that code in a form, or place that code in a normal module. You have to
declare the functions as public, and then in the menu bar's on-action event,
you place your function name there. When the menu item is thus selected, it
will call your code.

Here is a tutorial on menu bars:

http://www.microsoft.com/Accessdev/articles/bapp97/chapters/ba01_6.htm
 
Back
Top