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

ASP Access Database web site on Windows 2008 Server running IIS 7
How to populate field descriptions in MS Access
Version control for VBA file
Mystery HAVING clause
MS Access 2003 - Sparkline Graphs in Microsoft Access
How to extract the schema of an Access (.mdb) database?
Using loop in a Access Query
Access 2007 Empty Query Quirk
MS Access: How can I automatically reduce Text columns to an appropriate size for the data stored in them?
No max(x,y) function in Access
Why does a report throw an error when the corresponding query doesn't?
Programmatically Search an Access Listbox control's Items Based Off of a Textbox Entry
Auto populate a combobox
How can I add a button to an Access report to export it to Excel / PDF?
Access Caching ODBC connection settings
How to build the search form in ms-access

Categories

HOME
pandas
gitlab
asp.net-core
blogger
gerrit
urbancode
gremlin
google-play
session
sd-card
routes
frameworks
packages
flyway4
convolution
adfs
applepay
nano-server
hex-editors
windows-server-2012
circuit
reactive-cocoa
plunker
one-hot-encoding
riot.js
intentfilter
mps
icloud-api
one-to-many
pepper
greendao
sql-server-2012-express
caret
wallpaper
awt
grid.mvc
janrain
node-gyp
midl
heightmap
gpx
scorm
auto-update
avconv
rainbowtable
winscp-net
nstextview
snmptrapd
windows-iot-core-10
epson
flutterwave
vtigercrm
chord-diagram
wdf
google-feed-api
angular-cache
fody
gstreamer-0.10
superstack
essence
dlna
nessus
asp.net5
rtbkit
jms2
google-places
computer-algebra-systems
android-listview
graph-drawing
sonarqube5.1.2
dia
sorl-thumbnail
modalpopup
typekit
oxwall
jsonpickle
camanjs
qpainter
tt-news
fpml
markers
issuu
google-reader
tld
navigationservice
expected-exception
reactfx
marmalade
poller
dealloc
monomac
mcts
dexterity
tidy
soundtouch
dataservice
django-nonrel
robotics-studio
path-separator
unc
google-email-migration
labwindows
postgresql-performance
work-stealing
custom-backend
adk
zpt
joyent
cinema-4d
rfc1123
yui-datatable
krl
inotifycollectionchanged
html-input
xsdobjectgen
uimenucontroller
.net-1.0

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