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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|