command buttons and beforeupdate event

C

Cliffhanger

Is there a way to check to see if a command button was
pressed while running code attached to the before update
event? I want to see what command button was pressed
before I allow the update.

Thanks.
 
K

Kelvin

There is no BeforeUpdate event on a command button. Do you mean you want to
know if a command button was previoudly pressed? A command button does not
store a value when it is pressed so you cannot know. If you use a toggle
button, you can tell of the toggle button is on or off. Otherwise, the only
way to know if a command button was pressed would be to have code in the
Click event of the button to store a value in a variable then have this
other routine check the variable.

Kelvin
 

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