Hello
I have designed a database to capture detail of revision session for students. The database can detect if there are clashing sessions and generates a report (query)
I want to create a cross-tab to identify which subjects are clashing with each other however I cannot get the output to create a matrix view with the subjects on the row and the column to indicate where clashes have occurred.
For example:
Surname Forename RegGroup SessionDate SessionStart SessionFinish SessionSubject SessionTitle Status
Surname Forename ABC 02/02/2019 09:00 15:00 Design Technology GCSE DT Intervention Day Invited
Surname Forename ABC 02/02/2019 09:00 15:00 Graphics GCSE Graphics Intervention Day Invited
this is an identified clash, This student has been entered for Design Technology and Graphics at the same time. I want to be able to pivot this to show that there is 1 clash for DT (with Graphics) and 1 clash for Graphics (with DT).
Using a Cross-Tab query I have managed to get query which shows:
SessionDate MaxOfSessionSubject CountOfExamNumber1 Business CNAT Level 2 IT Design Technology Economics English Language GCSE Geography GCSE PE Graphics Physics Science
02-Feb-19 Design Technology 1 1
02-Feb-19 Graphics 1 1
However I want it to show the row heading for Design Technology to have a 1 under the Graphics column and the Graphics Row Heading to have a 1 under the Design Technology column to show where the clashes has occurred between the two subjects.
Any ideas?
Thanks
Gary
File:
I have designed a database to capture detail of revision session for students. The database can detect if there are clashing sessions and generates a report (query)
I want to create a cross-tab to identify which subjects are clashing with each other however I cannot get the output to create a matrix view with the subjects on the row and the column to indicate where clashes have occurred.
For example:
Surname Forename RegGroup SessionDate SessionStart SessionFinish SessionSubject SessionTitle Status
Surname Forename ABC 02/02/2019 09:00 15:00 Design Technology GCSE DT Intervention Day Invited
Surname Forename ABC 02/02/2019 09:00 15:00 Graphics GCSE Graphics Intervention Day Invited
this is an identified clash, This student has been entered for Design Technology and Graphics at the same time. I want to be able to pivot this to show that there is 1 clash for DT (with Graphics) and 1 clash for Graphics (with DT).
Using a Cross-Tab query I have managed to get query which shows:
SessionDate MaxOfSessionSubject CountOfExamNumber1 Business CNAT Level 2 IT Design Technology Economics English Language GCSE Geography GCSE PE Graphics Physics Science
02-Feb-19 Design Technology 1 1
02-Feb-19 Graphics 1 1
However I want it to show the row heading for Design Technology to have a 1 under the Graphics column and the Graphics Row Heading to have a 1 under the Design Technology column to show where the clashes has occurred between the two subjects.
Any ideas?
Thanks
Gary
File: