Link to home
Start Free TrialLog in
Avatar of D J
D JFlag for United States of America

asked on

MS Access How can I display a range in lieu of displaying every record in my report?

I have a report with a sub-form that will display all the doc numbers associated with each record:
Record 1
Doc 1, Doc 2, Doc 3, Doc 4

How can I update my report to:
Record 1
Doc 1 - Doc 4

If not consecutive:
Record 1
Doc 1 - Doc 4
Doc 8
Doc 10 - Doc 20

We can use the ID or Key for this purpose due to each doc number is consecutive with the key id.
With the logic if more than 3 records (Doc 1, Doc 2, Doc 3) show range in lieu of each record.
Avatar of aikimark
aikimark
Flag of United States of America image

You might be able to construct a field by concatenating the results of two Min() and Max() Select statements, concatenated with a " - " string.

Without more information and representative sample data, I would only be guessing.
Avatar of D J

ASKER

Aikimark - I'm using Allen Browns Concatrelated function, How can I add the Min() and Max() to my Concat statement below?


=IIf(IsNull([WINGS]),Null,ConcatRelated("LL_NUM","qry_llJoin","WINGSID = " & [WINGS]))
I am unfamiliar with the Concatrelated function and your data.
ASKER CERTIFIED SOLUTION
Avatar of PatHartman
PatHartman
Flag of United States of America 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
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