E
efandango
I have a Mainform and a Subform: (linked not by Master/Child), but by Filter
on the subform using: Run_No=Forms!frm_Sticky_Waypoints!Run_No
(Main Form) frm_Sticky_Waypoints
(SubForm) frm_Sticky_Waypoints_subform (continous)
Each subset contains a field called OrderSeq, this is a number relating to
the (human) record order.
I have two text boxes in the footer that are supposed to find the max and
Min value of OrderSeq for any given subset.
This is the code in the 'High' control:
=DMax("[OrderSeq]","tbl_Waypoints",[Run_No]=[Forms]![frm_Sticky_Waypoints]![Run_No])
But when I run the form, it gives me the Max figure of the overall main
recordset, and not the subset that is currently displayed.
How can I fix this problem?
on the subform using: Run_No=Forms!frm_Sticky_Waypoints!Run_No
(Main Form) frm_Sticky_Waypoints
(SubForm) frm_Sticky_Waypoints_subform (continous)
Each subset contains a field called OrderSeq, this is a number relating to
the (human) record order.
I have two text boxes in the footer that are supposed to find the max and
Min value of OrderSeq for any given subset.
This is the code in the 'High' control:
=DMax("[OrderSeq]","tbl_Waypoints",[Run_No]=[Forms]![frm_Sticky_Waypoints]![Run_No])
But when I run the form, it gives me the Max figure of the overall main
recordset, and not the subset that is currently displayed.
How can I fix this problem?