How do I make a function run?

  • Thread starter Thread starter Neal
  • Start date Start date
N

Neal

On a form I have a function that runs on the property On Current. Next the
property it says, =Next_Custom_Counter()

On another form I have a button that duplicates a record. When that's done,
I want to run the Next_Custom_Counter() function. How do I call it?

ie user clicks on button, code runs to duplicate then next_custom_counter
function runs.

Thanks, Neal
 
Neal said:
On a form I have a function that runs on the property On Current.
Next the property it says, =Next_Custom_Counter()

On another form I have a button that duplicates a record. When
that's done, I want to run the Next_Custom_Counter() function. How
do I call it?

ie user clicks on button, code runs to duplicate then
next_custom_counter function runs.

Thanks, Neal

If the button has an event procedure, just insert the line

Next_Custom_Counter

in that procedure, after whatever other code the procedure uses to do
its job, and before the procedure's exit. If the procedure uses
error-handling, you probably want to make sure that you only call
Next_Custom_Counter if no error is raised.
 
Back
Top