PDA

View Full Version : Afterupdate help



Rosted
08-31-2018, 02:17 AM
Hi all

I have a simple problem I know how to solve but I believe there is a smarter way to do it.

I have 10 textboxes and at the bottom, I have a button.

The button should only be enabled if there is made any updates in either of the textboxes.

I use this code for each field:

Private sub "Fieldname1"_afterupdate()
Button.Enabled = True

End sub

Is there a method were i do this for all fields?

OBP
08-31-2018, 03:09 AM
The Form's After Update procedure should do the same thing regardless of which field is updated.
I would add a

Button.Enabled = False

to your Form's On Current Event procedure to ensure the button his hidden when the record changes.