Form Events Procedure Not Working

  • Thread starter Thread starter Eddy
  • Start date Start date
E

Eddy

I am using Access2003. Using the After Update event for controls on the
form I color the background of the control if data has been put in. The
problem is when I put data in via code without placing the cursor in the
control the After Update event does not fire. I've tried the On Dirty and
On Change events with the same result. Is there a means to get these events
to work with out ever entering the control?
 
Eddy said:
I am using Access2003. Using the After Update event for controls on the
form I color the background of the control if data has been put in. The
problem is when I put data in via code without placing the cursor in the
control the After Update event does not fire. I've tried the On Dirty and
On Change events with the same result. Is there a means to get these events
to work with out ever entering the control?


There's nothing wrong here, that's the way it works.

What you should do when you want to run the AfterUpdate
event after setting the value is call the event at the end
of your code:

Me.textox = 123
textbox_AfterUpdate
 
Back
Top