T
Tammy
Hello,
I started this question in the queries group, and someone suggested using a
report, however, after trying a lot of various things, I can't figure out how
to display the data as needed. Here is the need:
My user has table data as follows:
ID Name Gift date Gift amt Gift acct
0001 John Doe 1/1/2007 $50.00 Annual Fund
0001 John Doe 1/1/2008 $75.00 Dean’s Fund
0002 Joe Smith 1/1/2008 $50.00 Annual Fund
She would like to create a report (or query) that displays the data in
columns labeled:
ID, Name, Gift date1, Gift amt1, Gift acct1, Gift date2, Gift amt2, Gift acct2
Some people have more than one record, some don't - some have >2 records. I
do not know how to get each individual record to display in a column with the
new label. Here was the suggestion from Duane, when I first thought I needed
a query, along with my response, that explains the need further:
"Is a report a possibility? If so, you can create a multi-column report to
display the results. If you really think you need a query, you would first
need to create a ranking query and then create a multi-value crosstab from
the ranking query."
I'm going to paste my response back:
"I think a report would work, as well. I'm not sure how to get the individual
records to display in fields with "new names": example, the field in the
table is called "Gift amt" - in a report, how would I then display record 1
as "Gift amt 1", record 2 for the same name to display as "Gift amt 2",
etc...
Same thing for the "Gift date" and "Gift acct"...
Each "name" can have more than one gift date, amt, and acct.
For each record, display the date, amt and acct under new lables - if
someone gave three gifts, I would need Access to create columns called "gift
date 1", "gift date 2", "gift date 3" (and "gift amt 1", gift amt 2", gift
amt 3" - as well as the gift accts).
I hope I'm explaining this well...
I wasn't sure what you meant by "ranking query" - if that sounds like what
I'll need, can you explain that one?"
I have tried a lot of queries and crosstab query variations, and have tried
getting creative with reports, but just can't figure this one out.
I'd appreciate any suggestions. I'm not VBA savvy, but my user is, so if
programming is the solution, I'd be happy to pass that info along to her.
We are using Access 2007.
Truly appreciate your help - thanks.
I started this question in the queries group, and someone suggested using a
report, however, after trying a lot of various things, I can't figure out how
to display the data as needed. Here is the need:
My user has table data as follows:
ID Name Gift date Gift amt Gift acct
0001 John Doe 1/1/2007 $50.00 Annual Fund
0001 John Doe 1/1/2008 $75.00 Dean’s Fund
0002 Joe Smith 1/1/2008 $50.00 Annual Fund
She would like to create a report (or query) that displays the data in
columns labeled:
ID, Name, Gift date1, Gift amt1, Gift acct1, Gift date2, Gift amt2, Gift acct2
Some people have more than one record, some don't - some have >2 records. I
do not know how to get each individual record to display in a column with the
new label. Here was the suggestion from Duane, when I first thought I needed
a query, along with my response, that explains the need further:
"Is a report a possibility? If so, you can create a multi-column report to
display the results. If you really think you need a query, you would first
need to create a ranking query and then create a multi-value crosstab from
the ranking query."
I'm going to paste my response back:
"I think a report would work, as well. I'm not sure how to get the individual
records to display in fields with "new names": example, the field in the
table is called "Gift amt" - in a report, how would I then display record 1
as "Gift amt 1", record 2 for the same name to display as "Gift amt 2",
etc...
Same thing for the "Gift date" and "Gift acct"...
Each "name" can have more than one gift date, amt, and acct.
For each record, display the date, amt and acct under new lables - if
someone gave three gifts, I would need Access to create columns called "gift
date 1", "gift date 2", "gift date 3" (and "gift amt 1", gift amt 2", gift
amt 3" - as well as the gift accts).
I hope I'm explaining this well...
I wasn't sure what you meant by "ranking query" - if that sounds like what
I'll need, can you explain that one?"
I have tried a lot of queries and crosstab query variations, and have tried
getting creative with reports, but just can't figure this one out.
I'd appreciate any suggestions. I'm not VBA savvy, but my user is, so if
programming is the solution, I'd be happy to pass that info along to her.
We are using Access 2007.
Truly appreciate your help - thanks.