Link to home
Start Free TrialLog in
Avatar of Henrymarc
Henrymarc

asked on

Need to pull only last entry in a multi entry field

I have a crystal report that groups records by invoice number, and a subreport to pull notes from the customer table.  The problem is the note field has multiple entries.  The subreports pulls all the customer notes.  I need to only pull the last entry. I can't seem to get it to do so.
is this possible?
ASKER CERTIFIED SOLUTION
Avatar of peter57r
peter57r
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mike McCracken
Mike McCracken

Do the notes records have an indication of the last one?
Date, sequence number?

If so one way to do this is to group on the invoice number in the subreport
Sort descending on the date field or sequence number
Show the notes field in the group header
Suppress the details

mlmcc
Avatar of Henrymarc

ASKER

Note Id and date for each note in the field distinguishes one note from the next.  The last entry is at the top.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial