command buttons and beforeupdate event

  • Thread starter Thread starter Cliffhanger
  • Start date Start date
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.
 
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
 
Back
Top