Hadi,
Based on your data structure in the table you can
accomplish what you are try to do as shown below. I will
be brief, if you need further detailed instructions send
an email.
1. Set your report to group on the NAME field and show a
report footer for the group.
2. Put the appropriate fields in the detail section of
the report. Change the detail section of the report to
invisible so it will not print.
3. In the detail section, add two additional Text
Controls (one for Txt2003 and Txt2004). Also make them
invisible.
4. Set Txt2003 Control Source to:
IIF([DESC]="2003", [AMOUNT],0)
Set the Running Sum property to Over Group.
5. Set Txt2004 Control source to:
IIF([DESC]="2004", [AMOUNT],0)
Set the Running Sum property to Over Group.
6. In the Group Footer add additional Text Controls that
will reference the Running Sum controls previously
establised in the detail section:
Txt2004Total
Control Source: =Txt2004
Txt2003Total
Control Source: =Txt2003
You can add other controls in the group footer to
reference the Name fields, etc. from the detail section.
Basically, the Group Footer will now become the detail
for each Name on one line.
Hope this helps. Email if you need further assistance.
Xcelsoft
-----Original Message-----
Thanks for your response
Here is what my table contains
Name field contains names like
Hadi
Lalani
Smith
Address field contains
111 main street
122 Main street
123 Main street
Region field contains
Dallas
Midcities
Plano
Amount field contains
1000
100
200
Description field contains
2003
2004
Every person can have a record for 2003 and 2004 or just 2003 or just 2004
I need the report to print as follows
Name Address Region Amnt Desc Amnt Desc
Hadi 111 main street Dallas 1000 2003 1000 2004
when I run the report in Access it prints 2 lines for
Hadi- one with 2003 in description and one in 2004 in
description.
what I am trying to do is to see who has records with
2003 values and who has 2004 values and who has both
values