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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top