I'm new at Access 03. I have a combobox that is sourced by a table, Rowsource property is:
SELECT Classes.TableID, Classes.ClassID FROM Classes;
The name of my combobox is "ClassCombo".
I'm trying to generate a report based on my combobox selection, but I can't reference the value of the selection. The query tied to my report has the following SQL:
SELECT ClassesForInstructors.ClassID, Instructors.InstructorID, Instructors.FirstName, Instructors.LastName
FROM Instructors INNER JOIN ClassesForInstructors ON Instructors.InstructorID = ClassesForInstructors.InstructorID
WHERE (((ClassesForInstructors.ClassID)="[Forms]![School]![ClassCombo]"));
I'm trying to grab the "ClassCombo" value as input to my query, but it's not working. What am I doing wrong?
Thanks!
SELECT Classes.TableID, Classes.ClassID FROM Classes;
The name of my combobox is "ClassCombo".
I'm trying to generate a report based on my combobox selection, but I can't reference the value of the selection. The query tied to my report has the following SQL:
SELECT ClassesForInstructors.ClassID, Instructors.InstructorID, Instructors.FirstName, Instructors.LastName
FROM Instructors INNER JOIN ClassesForInstructors ON Instructors.InstructorID = ClassesForInstructors.InstructorID
WHERE (((ClassesForInstructors.ClassID)="[Forms]![School]![ClassCombo]"));
I'm trying to grab the "ClassCombo" value as input to my query, but it's not working. What am I doing wrong?
Thanks!