Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crosstab in a Report

Status
Not open for further replies.

Ray1127

Programmer
Feb 22, 2002
231
US
I have a table in Access 2000 that stores the data in the following format:

group
case description
quarter
Count
pmpy(per Member Per yer)

I need to create a crosstab in a report that shows in the following format for each group

2008 2008 2008
Qtr2 Qtr 3 Qtr 4
case description cnt 2 0 1
pmpy 3.91 4.10 3.87

The columns can change depending on the date range for example the above was 4/1/2008 through 12/31/2008

If I use 4/1/2008 through 3/31/2009 it would show 2008 Qtr 2 through 2009 Qtr 1

created 4 text field and in the open event of the report set the 4 text fields to the 4 quarters in the report.

In the group footer I have 4 text fields with the formula
=SUM(IIF([qtr]=[txtqtr1],[ct],0))

for each of the 4 quarters txtqtr2,txtqtr3,txtqtr4

the problem is that everytime I run the report I get prompted for txtqtr1 Even though I've verified that txtqtr1 is set in the report open event. What am I missing?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top