Two buttons, same form VBA overwriting first button

S

somethings.amiss

Let me clarify, I have a form with two buttons. I create an event
procedure for the first button to create a query. I have a second
button with an event procedure also. When I go to write VBA, whatever
I type in overwrites the VBA for the first button. I'm missing
something really simple.

The first button is called 'cmdrunquery' and the second button is
called 'cmdselectall.' The first button runs a query. The second
button selects everything in my multi-select box.

Ideally I would like to be able to click the 'cmdselectall' button to
select all. Then I would like to click the 'cmdrunquery' button to
query on all that is selected. Thanks in advance for all help.
 
G

gambit32

Please disregard. I had a couple of extra lines of code when I copied
and pasted. Thanks!
 

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