Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Database Design / May 2005

Tip: Looking for answers? Try searching our database.

Joins

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ande - 17 May 2005 19:14 GMT
I have created a database - a table for each subject e.g. English; Maths; Art
etc.  Each table has fields such as the SubjectID, StudentId, Effort,
Attainment, Teacher's comments etc.  I also has a table called Students with
fields Id, Name, Surname, Form, Tutor's Comments.  The subject tables ar
linked to the Student table via the Student ID as a foreign key.  When I made
a query to in clude all students and subjects, I used the outer JOIN #2.  As
student sare allowed to choose theri subjects, there will be blank fields for
all students and this is one way of enabling the balnk fields to show.  

The problem I am experiencing is the inability to edit or add information in
the fields in the datasheet view of the query.  What am i doing wrong??
Rick B - 17 May 2005 19:57 GMT
On thing I spot right off the bat is that your structure is wrong.  You
should not create a separate table for each subject.  Any time you have more
than one table with identical data structures, you know you have strayed
from database normalization rules.

Signature

Rick B

> I have created a database - a table for each subject e.g. English; Maths; Art
> etc.  Each table has fields such as the SubjectID, StudentId, Effort,
[quoted text clipped - 7 lines]
> The problem I am experiencing is the inability to edit or add information in
> the fields in the datasheet view of the query.  What am i doing wrong??
tina - 17 May 2005 20:18 GMT
forget queries, forms, and everything else for a minute. your tables design
is not normalized. you're putting data (English, Maths, Art, etc) into table
names, which is a big no-no. from your description, sounds like you need a
minimum of three tables, as

tblStudents
StudendID (primary key)
FirstName
LastName
(other fields that describe a student. note that Form and Tutor's Comments
do not describe a student, they describe an instance of the student's
interaction with the curriculum.)

tblSubjects
SubjectID (pk)
SubjectName (English, Maths, Art, etc - one record for each subject)
(other fields that describe a subject.)

tblStudentSubjects
StuSubID (primary key)
StudentID (foreign key from tblStudents)
SubjectID (fk from tblSubjects)
Form (i'm assuming that "Form" is equivalent to "quarter", "semester", or
maybe grade level like "freshman, sophomore, junior, senior")
Effort
Attainment
TeacherComments

i have a feeling that your table setup needs to be expanded further to
appropriately model your process, but without more detailed information i
can't make specific suggestions.

i strongly recommend that you read up on data normalization and table
relationships. this is by far the single most important aspect of database
design, it must be done correctly *before* you begin building queries,
forms, etc - and the time you expend in learning to do it right will be
repaid a thousand-fold in avoiding the many problems and headaches
associated with trying to build workable objects on top of a poorly designed
foundation.

for a list of excellent resources, see
http://www.ltcomputerdesigns.com/JCReferences.html
beginning with the Database Design 101 and Starting Out links.

hth

> I have created a database - a table for each subject e.g. English; Maths; Art
> etc.  Each table has fields such as the SubjectID, StudentId, Effort,
[quoted text clipped - 7 lines]
> The problem I am experiencing is the inability to edit or add information in
> the fields in the datasheet view of the query.  What am i doing wrong??
Ande - 18 May 2005 07:15 GMT
Thank you for the comments.  They have been a great help.

ASW

> forget queries, forms, and everything else for a minute. your tables design
> is not normalized. you're putting data (English, Maths, Art, etc) into table
[quoted text clipped - 59 lines]
> in
> > the fields in the datasheet view of the query.  What am i doing wrong??
tina - 18 May 2005 07:39 GMT
you're welcome  :)

> Thank you for the comments.  They have been a great help.
>
[quoted text clipped - 63 lines]
> > in
> > > the fields in the datasheet view of the query.  What am i doing wrong??
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.