R
Ripan
I have a data entry form using forms and multipages with numerous dat
fields for the user to populate. I have also written error handlers t
restrict the input of the user using the AfterUpdate event (e.g. I
they enter an invalid entry for a date field and move off, th
AfterUpdate triggers an error message, which pops up next to th
field).
The general usage of this is that someone will open a new form, ente
data, and write to a worksheet. Since I do not allow invalid data to b
written, I can ensure that the data is correct when it is written, s
when I open the form, I do not need to validate anything.
However, in some cases, I may want to to import data from anothe
source, in which case, I would need to read in the data and validate.
However, since the error handlers run off the afterupdate event, usin
a macro to read in the data and populate the fields does not trigge
them. I thought I could bypass this problem by running a second macr
that uses SetFocus for each control to simulate moving off the control
However, this does not work also.
So after that explanation, my question is how I can trigger th
AfterUpdate events using VBA code
fields for the user to populate. I have also written error handlers t
restrict the input of the user using the AfterUpdate event (e.g. I
they enter an invalid entry for a date field and move off, th
AfterUpdate triggers an error message, which pops up next to th
field).
The general usage of this is that someone will open a new form, ente
data, and write to a worksheet. Since I do not allow invalid data to b
written, I can ensure that the data is correct when it is written, s
when I open the form, I do not need to validate anything.
However, in some cases, I may want to to import data from anothe
source, in which case, I would need to read in the data and validate.
However, since the error handlers run off the afterupdate event, usin
a macro to read in the data and populate the fields does not trigge
them. I thought I could bypass this problem by running a second macr
that uses SetFocus for each control to simulate moving off the control
However, this does not work also.
So after that explanation, my question is how I can trigger th
AfterUpdate events using VBA code