G
Guest
MS Access 2k, Windows XP
====================
Hi all,
I have a form with an unbound textbox control (txtStartDate) to enter a date
(mm/dd/yyyy). The form has a calendar button to select the date from a pop-up
calendar (Lebans) and put it into the textbox.
I also construct a SQL statement using the value in txtStartDate and some
other controls on the form.
The problem I'm having is that the SQL statement I put in the AfterUpdate
event of txtStartDate is not firing, when I use the pop-up calendar to enter
the date. I also tried to put the code in OnChange event of the control, with
the same result. The SQL code is correct as it is working with other controls.
I think that since the control is being assigned a value using the pop-up
calendar, somehow, the OnChange and the AfterUpdate events are not firing.
Is there a way to correct this?
I'd rather not put the code in the pop-up calendar/button event.
I can also use a button ("Search") to construct the code, but it'll be best
if I can figure something out with one of the txtStartDate events.
Thanks for any help regarding this.
-Amit
====================
Hi all,
I have a form with an unbound textbox control (txtStartDate) to enter a date
(mm/dd/yyyy). The form has a calendar button to select the date from a pop-up
calendar (Lebans) and put it into the textbox.
I also construct a SQL statement using the value in txtStartDate and some
other controls on the form.
The problem I'm having is that the SQL statement I put in the AfterUpdate
event of txtStartDate is not firing, when I use the pop-up calendar to enter
the date. I also tried to put the code in OnChange event of the control, with
the same result. The SQL code is correct as it is working with other controls.
I think that since the control is being assigned a value using the pop-up
calendar, somehow, the OnChange and the AfterUpdate events are not firing.
Is there a way to correct this?
I'd rather not put the code in the pop-up calendar/button event.
I can also use a button ("Search") to construct the code, but it'll be best
if I can figure something out with one of the txtStartDate events.
Thanks for any help regarding this.
-Amit