I have searched for a solution to my problem but have been unable to find any pointers or assistance. I currently have a form that has 2 text boxes in the main form and a subform that contains the record data, the subform datasheet displays multiple records.
The first textbox displays the average value of the records. This uses a (hidden) textbox in the subform footer with a control source =Avg([Data]). The mainform textbox's control source references the subform footer textbox.
My problem is with the second textbox on the mainform. Its purpose is to display a pass/fail based on the value of the first textbox. So, as the data in the subform is updated, the average value in the mainform textbox changes and this intern recalculates if the 2nd textbox should be a "Pass or Fail". I have the code inplace to update the second textbox but I have not found the correct event to trigger the update.
I originally placed the 2nd textbox code on a AfterUpdate for the first textbox. But I believe that because the user does not initiate the first textboxes change of value directly, the afterupdate event is not called. Which event should I be using, and on what control should I be placing the event.
Thankyou for your assistance.
The first textbox displays the average value of the records. This uses a (hidden) textbox in the subform footer with a control source =Avg([Data]). The mainform textbox's control source references the subform footer textbox.
My problem is with the second textbox on the mainform. Its purpose is to display a pass/fail based on the value of the first textbox. So, as the data in the subform is updated, the average value in the mainform textbox changes and this intern recalculates if the 2nd textbox should be a "Pass or Fail". I have the code inplace to update the second textbox but I have not found the correct event to trigger the update.
I originally placed the 2nd textbox code on a AfterUpdate for the first textbox. But I believe that because the user does not initiate the first textboxes change of value directly, the afterupdate event is not called. Which event should I be using, and on what control should I be placing the event.
Thankyou for your assistance.