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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Eliminating dups for a specific date within a date range

Status
Not open for further replies.

mark12010

IS-IT--Management
Apr 28, 2010
32
0
0
US
I have a report that lists Medication date, transaction time, client id and client name. It runs for a date range but is not sorted by date, rather by client name. Lets say I run the report from 8/21 - 8/23 the output should look something like this.
.
.
.
8/17/2010 08:01 AM 199057 ***NAME1***
8/18/2010 08:00 AM 199057 ***NAME1***
8/19/2010 08:03 AM 199057 ***NAME1***
8/17/2010 08:01 AM 199057 ***NAME2***
8/18/2010 08:00 AM 199057 ***NAME2***
8/18/2010 08:05 AM 199057 ***NAME2***
8/19/2010 08:03 AM 199057 ***NAME2***
.
.
.
If you notice for 8/18/2010 ***NAME2*** has 2 entries. This is because teh nurse spilled the first dose and had to re-pour the second. I want to eliminate the second dose as we can only have one dose per client per day.
 
Group your report by Name and then by date, in Date Group dialog box select For each day in bottom window.

Order by date date acending
Suppress details and move all field from details into date group footer.

You will now only see last entry for each day.

If you want to do count/sums use a Running Total and make sure you use distinct or evaluate on change of date group.

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top