Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Transposing rows to columns headings in MS Access

Posted on 2012-03-14
7
Medium Priority
?
194 Views
Last Modified: 2013-04-09
Hi,

I am designing a database to deal with subject options for pupils ..each pupil can take 5 subjects labelled A-E. When I thought about design I was going to create Pupils / Subjects and Pupils takes subjects table and each pupil would have many rows in the pupils take subjects table with subject name and column number.

However I want to display this with one pupil per row and the subject lables A-E across top with each subject filled in.. also I need to produce a timetable and each subject gets slotted into a period in a day.

I have changed the design to have subjects A-E but every bone in my body is telling me this is BAD design.

Before I spend many more hours on this can anyone tell me if the design attached will work or if I can use my originals thoughts and still produce the two forms that I have produced in the attachment.  Thought it best to ask ...cos experts exchange say just ask :-)

Any pointers /help appreciated.

Thanks.
S5S6-Options.mdb
0
Comment
Question by:tmckeating
  • 4
7 Comments
 

Author Comment

by:tmckeating
ID: 37725214
I am not sure I kno what that answer means.
0
 
LVL 19

Expert Comment

by:Richard Daneke
ID: 37725306
It means, your question was recategorized for a wider audience.

You are designing to a report, not designing a table and then generating a report.

Data should be normalized.   Look  it up in Wikipedia - third normal form.

You are on the right path with students, classes, and students assigned to classes.  

I would have multiple records for the students selected classes to avoid repeating fields (see data normalization).  

Will each of the classes meet every day of the week or do they have varying schedules?  Would you like to include classroom, teacher assigned, etc. for additional fields?

I would use a crosstab query to pull the scheduled classes together.

I don't have time to tweak your database now, but may be able to later.
0
 

Author Comment

by:tmckeating
ID: 37727020
I have chnaged design to normalisation rules... but with this I cannot seem to get the kind of forms i need to chnage subject data and timetable as required. Any help appreciated.
S5S6-Options---Normalised.mdb
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 10

Expert Comment

by:Luke Chung
ID: 37727895
0
 

Accepted Solution

by:
tmckeating earned 0 total points
ID: 37728614
I have normalised my pupil subjects table but cannot see how I can display it in a form with pupils down the left and subjects A-E as column headings. I created a crosstab query but then cannot edit the data in this format. I do not have VB experience...can you do this without VB?
0
 

Author Closing Comment

by:tmckeating
ID: 39061176
none of the others fitted and I did not have the expertise to design visual basic
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question