Hi
I have a form with two fields, both have a little button associated which brings up a calendar form (downloaded from http://allenbrowne.com/) for them to choose a date.
The first one is bound to a field in the table the form is based on, but the second one is unbound.
When the user chooses a date on the first one, I want the second one to default to the same date.
In other words, it's for booking leave - the first is the start date, the second is the end, but i want it to default to one day.
I have put the code below on the AfterUpdate or OnChange events and neither seems to work. Any ideas?
Code:
Private Sub txtDateFrom_AfterUpdate()
Me.txtDateTo.Value = Me.txtDateFrom.Value
End Sub
Thanks
Chris