Easy one first...
and I cant enter a score into the query.
There are certain requirements where a query involving more than one table need to meet before the results can be updated. I suspect you realize that you want to update TblStudentAssignment. Review the following article...
Harnessing the Power of Updatable Queries
Next said:
I can't get my query to display any records
Are you getting an error or just no results?
Start off simple. Work with one table in the query. The results will be updatable provided you include the primary key.
You can enter some data here if you wish.
Then, work with two tables in the query. I did a quick setup with your spec's
SELECT TblAssignment.AssignmentSubject, TblAssignment.AssignmentName, TblAssignment.AssignmentDate, TblStudentAssignment.StudentID, TblStudentAssignment.Score, TblStudentAssignment.HandInDate
FROM TblAssignment INNER JOIN TblStudentAssignment ON TblAssignment.AssignmentID = TblStudentAssignment.AssignementID
ORDER BY TblAssignment.AssignmentSubject, TblAssignment.AssignmentDate;
Results were as expected...
[tt]
AssignmentSubject AssignmentName AssignmentDate StudentID Score HandInDate
English Book Report 1 3/2/2005 3 80 3/1/2005
English Book Report 2 3/15/2005 3 83 3/13/2005
Math Assigment 1 3/1/2005 2 75 3/1/2005
Math Assigment 1 3/1/2005 1 85 3/2/2005
Math Assigment 2 3/7/2005 2 78 3/8/2005
Math Assigment 2 3/7/2005 1 83 3/6/2005
[/tt]
I then added the third table, TblStudent, and swapped StudentID for LName...
SELECT TblAssignment.AssignmentSubject, TblAssignment.AssignmentName, TblAssignment.AssignmentDate, TblStudent.LName, TblStudentAssignment.Score, TblStudentAssignment.HandInDate
FROM TblStudent INNER JOIN (TblAssignment INNER JOIN TblStudentAssignment ON TblAssignment.AssignmentID = TblStudentAssignment.AssignementID) ON TblStudent.StudentID = TblStudentAssignment.StudentID
ORDER BY TblAssignment.AssignmentSubject, TblAssignment.AssignmentDate;
Results were as expected...
[tt]
AssignmentSubject AssignmentName AssignmentDate LName Score HandInDate
English Book Report 1 3/2/2005 LeGuin 80 3/1/2005
English Book Report 2 3/15/2005 LeGuin 83 3/13/2005
Math Assigment 1 3/1/2005 Brooks 75 3/1/2005
Math Assigment 1 3/1/2005 Assimov 85 3/2/2005
Math Assigment 2 3/7/2005 Brooks 78 3/8/2005
Math Assigment 2 3/7/2005 Assimov 83 3/6/2005
[/tt]
If you used names the names of the tables and fields as provided, switch your query to SQL view (with the query open in design view, from the menu, "View" -> "SQL")
If you don't see the "INNER JOIN ... ON", then you may not have defined the relationships correctly.
Note that the above tables will not allow you enter records because the essential primary keys are not included.
If you are still having problems, post your SQL statement.
Richard