Toolbar help

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
 
A

Albert D. Kallal

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
 

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