Calling Form Event

J

JamesJ

I'm trying to call Form_BeforeUpdate event from the On Click
of a command button but I keep getting: Argument not optional.
Any help will be appreciated.
 
R

Rick Brandt

JamesJ said:
I'm trying to call Form_BeforeUpdate event from the On Click
of a command button but I keep getting: Argument not optional.
Any help will be appreciated.

If you look at BeforeUpdate there is an argument for the Cancel. You need to
supply a zero for that when you call it.

Call Form_BeforeUpdate(0)
 
Top