Formatting Output from a query

Gmelsofty

Registered User.
Local time
Today, 03:53
Joined
Mar 26, 2017
Messages
20
Hello;
I have the following table structure for a students database:
Reg_No Name Class Subject ID Mark
14256 Clint A 100 67
14256 Clint A 101 60
14256 Clint A 102 80
67478 Silas B 100 74
67478 Silas B 101 81
67478 Silas B 102 45

- Note that I used two primary Keys; Reg_No and Subject ID.
- How can I present the above data in a query or a report as follows using either VBA or SQL? Incase other subject IDs are added the sql should take care of it.

Reg_No Name Class 100 101 102 Subject ID x
14256 Clint A 67 60 80 --
67478 Silas B 74 81 45 --

Thanks.
 
Thanks so much let me try it out.
 

Users who are viewing this thread

Back
Top Bottom