Well, I thought this too - but in this case, I am setting the value of the
'other field' when the form is called. I then set the default for the
'dependent field' to =[Otherfieldname] - but when the form loads, the 'other
field' has the intended date, the 'dependent field' has no date and so the
date picker defaults to current date. Since the user will likely accept the
date of the 'other field' then the after update event won't be called. I
don't know why the default setting isn't working. (Interestingly, if I set
the default date of the 'other field' to Date()+30, and the default date for
the 'dependent field' to the 'other field' then the date picker for the
'dependent field' actually uses current date + 30 as the starting point!
S.Clark said:
in the form, you can set the default for the field to be equal to the other
field name.
e.g. =[Otherfieldname]
Set this in the Properties Window of the form.
In the case where the 'other field' has to be entered, then set the desired
field in the AfterUpdate of the 'other field'.
:
Does anyone know how to change the date that the Date Picker will focus on
for a particular field? It will seems default to the current date, or to the
date value of the field but I would like to be able to set it equal to the
date value of another field on the form.