ms-access


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.

Related Links

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

Categories

HOME
osgi
deployment
openmp
netsuite
activiti
deezer
getelementsbytagname
jsrender
sharepoint-designer
rdf
v8
sql-server-2016
cross-browser
flyway4
azure-media-services
mouse
bs4
gitpitch
facebook-php-sdk
here-api
handsontable
mapserver
timeout
quartz-scheduler
iolanguage
systemc
finite-automata
interop
textfield
facebook-instant-articles
language-agnostic
claims-based-identity
microsoft-sync-framework
qhull
fopen
neo4j-spatial
xacml
flink-streaming
xquery-3.0
uisplitview
copying
perlin-noise
lxd
azure-sql-database
xmlreader
wallpaper
android-ble
wixsharp
http-digest
retina-display
swift3.0.2
jna
greenrobot-eventbus
dism
elmah
glew
mime
heightmap
node-sass
smartcontracts
lift-json
google-perftools
android-cursor
bind9
color-profile
underscore.js-templating
prettytensor
make-install
hover-over
goose
xpath-1.0
jmeter-maven-plugin
retina
tarjans-algorithm
myo
processmodel
ami
system32
clipperlib
dereference
apache-commons-net
modalpopup
coldbox
google-style-guide
code-access-security
undefined-reference
batterylevel
seed
comaddin
nsnetservice
gdata-api
pendrive
php-parser
gnustep
locationlistener
appendto
lang
paster
mozilla-prism
mirah
bespin
perfect-hash
ctp4
simpletest
aquaticprime
defensive-programming
msdev

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App