J
jlute
I have a subreport with an underlying query that sorts in ascending
order. The subreport also has a text box with the following control
source:
="Facility ID/Line ID: "+IIf([Forms]!
[frmQueryFGProcessingFacIDsLineIDs]![cbProfilesAssocsFacIDs] Is Not
Null,+[ShortAddress] & " / " & [LineID] & " " & [LineDesc])
The text box displays properly ONLY if the FIRST record in the
ascending order contains a value in [ShortAddress]. If that's a little
fuzzy then maybe I can illustrate:
ID (ascending) | ShortAddress | LineDesc
100123 | 123 Any Town, USA | 02 - Thermoform
200345 | |
300444 | |
In this case, the text box will properly display [ShortAddress] and
[LineDesc].
In the next case, the text box will NOT properly display:
ID (ascending) | ShortAddress | LineDesc
200123 | |
300345 | 123 Any Town, USA | 02 - Thermoform
400444 | |
Obviously, this is because the ascending order has placed the record
with [ShortAddress] second in order.
How can I change the code to display the record with [ShortAddress]
and [LineDesc] regardless of its order?
Thanks in advance for your help!
order. The subreport also has a text box with the following control
source:
="Facility ID/Line ID: "+IIf([Forms]!
[frmQueryFGProcessingFacIDsLineIDs]![cbProfilesAssocsFacIDs] Is Not
Null,+[ShortAddress] & " / " & [LineID] & " " & [LineDesc])
The text box displays properly ONLY if the FIRST record in the
ascending order contains a value in [ShortAddress]. If that's a little
fuzzy then maybe I can illustrate:
ID (ascending) | ShortAddress | LineDesc
100123 | 123 Any Town, USA | 02 - Thermoform
200345 | |
300444 | |
In this case, the text box will properly display [ShortAddress] and
[LineDesc].
In the next case, the text box will NOT properly display:
ID (ascending) | ShortAddress | LineDesc
200123 | |
300345 | 123 Any Town, USA | 02 - Thermoform
400444 | |
Obviously, this is because the ascending order has placed the record
with [ShortAddress] second in order.
How can I change the code to display the record with [ShortAddress]
and [LineDesc] regardless of its order?
Thanks in advance for your help!