G
Guest
I need to be able to display the first actual delivery date (of several
deliveries over several days) on an Order Header Form and write this value
to the Order Header Table.
The underlying tables consist of an Order Header Table and a Detailed
Deliveries Table.
On the Order Header Form (which is based on the Order Header Table), I have
tried using the DMin function (as I need the minimum/first date) as a
calulation within the control - as follows:
=DMin("[delivery date]","Detailed Deliveries Table","[order
number]=forms![Order Header Form]![order number]")
I have also tried a DMin expression in a macro invoked from a control on the
form as follows:
=(DMin("([delivery date])","Detailed Deliveries Table","[order
number]=forms![Order Header Form]![order number]"))
Both of the above are unsuccessful.
I have a 'top values' query in ascending order which is set to return 1
delivery date record and this does display the correct data. How can I
invoke this query from within the Order Header Form and base it on the order
number without having to reply to a prompt for the order number or invoke a
command button?
Thanks
Andrew
deliveries over several days) on an Order Header Form and write this value
to the Order Header Table.
The underlying tables consist of an Order Header Table and a Detailed
Deliveries Table.
On the Order Header Form (which is based on the Order Header Table), I have
tried using the DMin function (as I need the minimum/first date) as a
calulation within the control - as follows:
=DMin("[delivery date]","Detailed Deliveries Table","[order
number]=forms![Order Header Form]![order number]")
I have also tried a DMin expression in a macro invoked from a control on the
form as follows:
=(DMin("([delivery date])","Detailed Deliveries Table","[order
number]=forms![Order Header Form]![order number]"))
Both of the above are unsuccessful.
I have a 'top values' query in ascending order which is set to return 1
delivery date record and this does display the correct data. How can I
invoke this query from within the Order Header Form and base it on the order
number without having to reply to a prompt for the order number or invoke a
command button?
Thanks
Andrew