The result that I want is to create a form that lists students that have attended a class during this year. I want a checkbox next to each name so the user can choose which students to create an address label for. But first I have to get the right data.
Here’s my setup:
Students table
SSN
LastNM
FirstNM
etc.
OtherInfo table
SSN
PrintCheck (Yes/No field)
etc.
SumAcad table
SumID
SumBeginDT
etc.
SumAcadStudents table
SSN
SumID
There is a 1-to-1 relationship between Students and Other Info.
There is a 1-to-many relationship between SumAcad and SumAcadStudents.
Students can attend many classes in one year.
I set up these 2 queries:
qselSumAcadLabels (Unique Values = Yes)
qselSumAcadLabels2
The first query gets me the students that attended for the year. By attaching the first query to the second one I get the info for only those names. Well, the results are correct BUT I can’t edit the PrintCheck field.
What am I missing?
Thanks,
Debbie
Here’s my setup:
Students table
SSN
LastNM
FirstNM
etc.
OtherInfo table
SSN
PrintCheck (Yes/No field)
etc.
SumAcad table
SumID
SumBeginDT
etc.
SumAcadStudents table
SSN
SumID
There is a 1-to-1 relationship between Students and Other Info.
There is a 1-to-many relationship between SumAcad and SumAcadStudents.
Students can attend many classes in one year.
I set up these 2 queries:
qselSumAcadLabels (Unique Values = Yes)
Code:
SELECT DISTINCT SumAcadStudents.SSN, Year([SumBeginDT]) AS CurrYear
FROM SumAcad INNER JOIN SumAcadStudents ON SumAcad.SumID = SumAcadStudents.SumID
WHERE Year([SumBeginDT])=Year(Now());
qselSumAcadLabels2
Code:
SELECT OtherInfo.PrintCheck, [LastNM] & ", " & [FirstNM] & " " & [MI] AS Name, Students.LastNM, Students.FirstNM, Students.MI, Students.SSN
FROM (Students INNER JOIN qselSumAcadLabels2 ON Students.SSN = qselSumAcadLabels2.SSN) INNER JOIN OtherInfo ON Students.SSN = OtherInfo.SSN
ORDER BY Students.LastNM, Students.FirstNM, Students.MI;
The first query gets me the students that attended for the year. By attaching the first query to the second one I get the info for only those names. Well, the results are correct BUT I can’t edit the PrintCheck field.
What am I missing?
Thanks,
Debbie