C
CRH
I need to sort a report on the value in a control field, but I can't figure
out how to do that.
My table source for the report has only FieldA-ID (Parent) and FieldB-ID
(Child). A separate table has the description for FieldA-ID and FieldB-ID.
My report of the table is set up to display just the description in the
Parent header:
=DLookUp("[MyDesc]","MyDescTable","[MyDescID] = " & Report!FieldA-ID)
and just the description in the Child detail:
=DLookUp("[MyDesc]","MyDescTable","[MyDescID] = " & Report!FieldB-ID)
My only 'sorting and grouping' choices seem to be 'FieldA-ID' and
FieldB-ID', so I get
Parent: Foo [MyDescID=01]
Child: Wally [MyDescID=72]
Dibert [MyDescID=90]
Parent: Bar [MyDescID=02]
Child: Dogbert [MyDescID=16]
Ratbert [MyDescID=25]
But what I want the report to look like is:
Parent: Bar
Child: Dogbert
Ratbert
Parent: Foo
Child: Dilbert
Wally
How do I do this?
Thanks in advance,
- Cathy
out how to do that.
My table source for the report has only FieldA-ID (Parent) and FieldB-ID
(Child). A separate table has the description for FieldA-ID and FieldB-ID.
My report of the table is set up to display just the description in the
Parent header:
=DLookUp("[MyDesc]","MyDescTable","[MyDescID] = " & Report!FieldA-ID)
and just the description in the Child detail:
=DLookUp("[MyDesc]","MyDescTable","[MyDescID] = " & Report!FieldB-ID)
My only 'sorting and grouping' choices seem to be 'FieldA-ID' and
FieldB-ID', so I get
Parent: Foo [MyDescID=01]
Child: Wally [MyDescID=72]
Dibert [MyDescID=90]
Parent: Bar [MyDescID=02]
Child: Dogbert [MyDescID=16]
Ratbert [MyDescID=25]
But what I want the report to look like is:
Parent: Bar
Child: Dogbert
Ratbert
Parent: Foo
Child: Dilbert
Wally
How do I do this?
Thanks in advance,
- Cathy