Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Cross tab for clashing sessions

Cross tab for clashing sessions

Cross tab for clashing sessions


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?




RE: Cross tab for clashing sessions

Please use TGML to format your data displays so we can see what you are asking for without opening attachments. Is your query for only one student or all students? Showing only two records doesn't seem real world where there would be many more.

You can easily post your query SQL view.

What happens if you simply remove the GROUP BY SessionSubject?

Hook'D on Access
MS Access MVP 2001-2016

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close