I am completing a report that uses two tables with a one to many relationship.
The primary table is a list of orders, with one record per order.
The second table is a list of actions on each order and has many records per order. One record tells when the order was placed, one for when the order was filled, one when the delivery truck left the depot, one when the delivery truck completed the delivery.
Each of these action records has a record type and date and time for when the action was taken.
I have a report that has a group by order number with details about the order in the group header and then the action records in the details section.
I need to pick out two records to calculate a time difference. For example, I need to determine the time that the truck left the depot and when the order was delivered and calculate the difference.
I have tried to do this using two variables, but it does not work for me. Can anyone please point me in the right direction?
Thanks much for your help! Have a great New Year!
The primary table is a list of orders, with one record per order.
The second table is a list of actions on each order and has many records per order. One record tells when the order was placed, one for when the order was filled, one when the delivery truck left the depot, one when the delivery truck completed the delivery.
Each of these action records has a record type and date and time for when the action was taken.
I have a report that has a group by order number with details about the order in the group header and then the action records in the details section.
I need to pick out two records to calculate a time difference. For example, I need to determine the time that the truck left the depot and when the order was delivered and calculate the difference.
I have tried to do this using two variables, but it does not work for me. Can anyone please point me in the right direction?
Thanks much for your help! Have a great New Year!