G
GeorgeAtkins
I need some ideas on how to solve a problem. Excuse me for the length of the
post; I’ll be as concise as opssible. I need to create a report in which
weekly school attendance and class data appears in the following cross-tab
format:
Times Rm #18 Rm #22 Rm #36
7:40 - StuCnt: 25 StuCnt:27 StuCnt:30
8:25 AvAttn: 3.5 AvAttn:4.3 AvAttn:4.45
Period 1 Resource Trans Outcome Science
Amy Kris Glenda
8:26 - StuCnt:32 StuCnt:30 StuCnt:35
8:45 AvAttn:3.6 AvAttn:3.8 AvAttn:3.76
Period 2 SDL SDL SDL
Amy Kris Mary
Scott
This table columns represent room assignments and the rows designate class
periods. Inside each cell the following data appear:
1.Teacher; 2. Course; 3. Avg Weekly Attendance; 4. # of students in class.
The data is stored in several, related Access tables. I gathered the data
into a query that produces the following view:
Period Time RmNo Teacher Course StuID Attnd
1 7:40 - 8:25 18 Amy Resource 394 2.00
1 7:40 - 8:25 18 Amy Resource 403 0.00
1 7:40 - 8:25 18 Amy Resource 408 2.50
1 7:40 - 8:25 22 Kris Tran Outcome 362 3.00
1 7:40 - 8:25 22 Kris Tran Outcome 370 3.00
1 7:40 - 8:25 22 Kris Tran Outcome 407 1.00
1 7:40 - 8:25 23 Glenda Science 95
0.00
1 7:40 - 8:25 23 Glenda Science 106
2.50
Each row represents a student (StuID) and related data. The total dataset
represents the attendance information for the past week. (thus, student 394
attended period 1 class in Rm 18 for 2 days)
Of course, the normal Access crosstab report cannot produce this; neither
can Excel. I have even tried subreports, but without success. Unless I am
overlooking something. I’ve tried to build the report manually, using report
textboxes and =IIF statements, e.g. =IIf(Nz([RoomNo]=19,""),"count: " &
Count([AccessCode]),""). However, this is only partially correct.
Does anybody have a better solution? I’m thinking that it will require a
programming approach, involving some arrays. If anybody has a few tips to
throw my way, I’d appreciate it greatly!
George
post; I’ll be as concise as opssible. I need to create a report in which
weekly school attendance and class data appears in the following cross-tab
format:
Times Rm #18 Rm #22 Rm #36
7:40 - StuCnt: 25 StuCnt:27 StuCnt:30
8:25 AvAttn: 3.5 AvAttn:4.3 AvAttn:4.45
Period 1 Resource Trans Outcome Science
Amy Kris Glenda
8:26 - StuCnt:32 StuCnt:30 StuCnt:35
8:45 AvAttn:3.6 AvAttn:3.8 AvAttn:3.76
Period 2 SDL SDL SDL
Amy Kris Mary
Scott
This table columns represent room assignments and the rows designate class
periods. Inside each cell the following data appear:
1.Teacher; 2. Course; 3. Avg Weekly Attendance; 4. # of students in class.
The data is stored in several, related Access tables. I gathered the data
into a query that produces the following view:
Period Time RmNo Teacher Course StuID Attnd
1 7:40 - 8:25 18 Amy Resource 394 2.00
1 7:40 - 8:25 18 Amy Resource 403 0.00
1 7:40 - 8:25 18 Amy Resource 408 2.50
1 7:40 - 8:25 22 Kris Tran Outcome 362 3.00
1 7:40 - 8:25 22 Kris Tran Outcome 370 3.00
1 7:40 - 8:25 22 Kris Tran Outcome 407 1.00
1 7:40 - 8:25 23 Glenda Science 95
0.00
1 7:40 - 8:25 23 Glenda Science 106
2.50
Each row represents a student (StuID) and related data. The total dataset
represents the attendance information for the past week. (thus, student 394
attended period 1 class in Rm 18 for 2 days)
Of course, the normal Access crosstab report cannot produce this; neither
can Excel. I have even tried subreports, but without success. Unless I am
overlooking something. I’ve tried to build the report manually, using report
textboxes and =IIF statements, e.g. =IIf(Nz([RoomNo]=19,""),"count: " &
Count([AccessCode]),""). However, this is only partially correct.
Does anybody have a better solution? I’m thinking that it will require a
programming approach, involving some arrays. If anybody has a few tips to
throw my way, I’d appreciate it greatly!
George