Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suppressing earlier record based on later record

Status
Not open for further replies.

lrdavis

Programmer
Sep 26, 2002
6
US
I need to track the number of days a container is overdue to be returned. The first record shows the full container being delivered and a later record shows the empty being returned. The task is to suppress display of the first record based on later record indicating a return. In other words, the returned containers should not show at all. The number of days calculation is no problem, just the logic to suppress a container when a return has occured.

Thanks in advance.
 
You haven't described your fields. Assuming you have a group on {table.container} and that you have a field {table.returned} that indicates if the container has been returned, then you could create a formula {@returned}:

if isnull({table.returned}) then 0 else 1

Then go to report->edit selection formula->GROUP and enter:

sum({@returned},{table.container}) = 0

This should return all records for each container that has not been returned. If this is not how your fields are set up, please describe your fields and provide some sample data.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top