Using Crystal Reports 8.5, and ODBC connection to MS SQL tables.
I'm linking two files(an order header file and a line item file linked on order_no using an equals join).
My report is grouped on Order_no.
The table has fields hst_dt and hst_tm.
I am selecting the line item records that have the latest hst_dt (date) and/or (hst_tm)by using a datetime field, with a formula: datetime({table.hst_dt},{table.hst_tm})
Then I have {@datetime} = maximum({@datetime},{table.ord_no}) in the report->selection formula->GROUP
Now I need to be able to get a total for the records that are selected. Is anyone able to help with this?
Karen
I'm linking two files(an order header file and a line item file linked on order_no using an equals join).
My report is grouped on Order_no.
The table has fields hst_dt and hst_tm.
I am selecting the line item records that have the latest hst_dt (date) and/or (hst_tm)by using a datetime field, with a formula: datetime({table.hst_dt},{table.hst_tm})
Then I have {@datetime} = maximum({@datetime},{table.ord_no}) in the report->selection formula->GROUP
Now I need to be able to get a total for the records that are selected. Is anyone able to help with this?
Karen