Eljefegeneo
Still trying to learn
- Local time
- Today, 12:23
- Joined
- Jan 10, 2011
- Messages
- 899
I have a calculated control [DiffDate] on the Main form whose calculation uses the value from a calculated control [LastContactDate] on a Subform. This works fine. I want the control [DiffDate] to populate a bound control [Aging1]. If [DiffDate] is less than 365 then [Aging1] = "A", if between 366 and 719 then ' "B", else "C". I can update the [Aging1} control by using the On Focus event on [DiffDate]. But I cannot figure out how to do it on Form Load, Form Open, Form Close, etc. Or even on the change of the date control that is used to calculate [LastContactDate]. When I open the form or go to a new record, I see the [DiffDate] control change from the number 41312 to the correct number of days between today and the last contact.
I do not necessarily need it to be updated immediately, that is when the current record is displayed, but it should be updated. The [Aging1] control doesn't need to be updated unless there is a change.
Is there any way of doing this?
I do not necessarily need it to be updated immediately, that is when the current record is displayed, but it should be updated. The [Aging1] control doesn't need to be updated unless there is a change.
Is there any way of doing this?