View Single Post
  #2  
Old January 20th, 2007, 05:29 AM posted to microsoft.public.access.forms
Allen Browne
external usenet poster
 
Posts: 11,706
Default After Update with Calendar Control?

As you found, Access fires the AfterUpdate event only if you type something
in the control, and not if it is updated programmatically.

In the code at calls the calendar, you can explicitly call the afterupate of
the control also. It might look like this:
Call MyCalendar
Call Date99_AfterUpdate

That certainly works with a calendar such as this one:
http://allenbrowne.com/ser-51.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"4110" wrote in message
...
I have a form that includes a list box that is populated from a query.
There
are several criteria in the query that coorespond to controls on the form.
As a user makes selections on the form the values in the list box change
in
response. I am using the "After Update" property in text boxes to update
the
list after each selection.

One of the criteria I would like to include on the form is date. The
Calendar Control and the Date Time Picker don't seem to have an "After
Update" property. How can I update the list after a user picks a new date?

Thanks,

David