Pivot combo box table in ms access
I am using this SQL: TRANSFORM Max(table1.[quiz]) AS MaxOfquiz SELECT table1.[quizdate], table1.[studentname], Max(table1.[quiz]) AS [Total Of quizscores] FROM table1 GROUP BY table1.[quizdate], table1.[studentname] PIVOT table1.[coursename]; To try and pivot a combobox table: Table1 ID quizdate coursename studentname quiz 1 02-Jan-21 math john 100 2 03-Feb-21 science joe 99 3 04-Mar-21 physics monica 97 4 05-Apr-20 language mike 88 Where coursename is a dropdown (math, science, physics, language) into Table 2 studentname math science physics language john 100 joe 99 monica 97 mike 88 I got these results: quizdate studentname Total Of quizscores 1 2 3 4 4/4/2016 moe 88 88 1/1/2017 john 100 100 2/2/2017 joe 99 99 3/3/2017 monica 97 97 It seems that combox box coursename can't be pivoted as column name, but the numbers instead. Can anyone explain how I can generate the correct results?
You answer it yourself: Where coursename is a dropdown (math, science, physics, language) So, in the query, the value from the field will be the ID of these "dropdowns". To obtain coursenames, move these to a separate table and join this with Table1 in your query.
How to force access to begin a new record
How should I setup Shipping and Receiving tables for RDBMS?
Remove link for linked table in access
MSACCESS 2002 Linked Table Performance Really Slow
ms access 2010 update linked table with no primary key
Memo field value truncated to about 1000 characters when inserted from a .net typed dataset
Access (.MDB) deployment issue - Windows 7 - Installation with admin user?
MS Access 2007 popup form refuses to display/not accessible in design mode (but present in list of forms)
Count email type per customer id
Access Row Data to Columns Based Off ID
External Development and Testing of Microsoft Access VBA Code
Avoid busy wait in Access 2003
Extracting data from 60,000 Facebook ID's in less than 6 hours?
MS Access 2010: Linking to SharePoint list with Multiple Content Types -Read-Only
Save password for ODBC connection to MS SQL server from MS Access 2007
Average of a distinct count by day in Access