A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

After Update with Calendar Control?



 
 
Thread Tools Display Modes
  #1  
Old January 19th, 2007, 09:22 PM posted to microsoft.public.access.forms
4110
external usenet poster
 
Posts: 24
Default After Update with Calendar Control?

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
  #2  
Old January 20th, 2007, 06: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


  #3  
Old January 22nd, 2007, 02:46 PM posted to microsoft.public.access.forms
4110
external usenet poster
 
Posts: 24
Default After Update with Calendar Control?

Hi Allen,

Thank you for your help. I will replace the calendar I had with yours if
that is ok. The click event in your calendar is what I needed.

Thank again.

David


"Allen Browne" wrote:

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



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:33 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.