I am trying to set up a form with 2 comboboxes and a textbox, plus a query to use the data from these boxes to search the database.
I have tried the following SQL statement for my query:
SELECT Teacher.TeacherID, Teacher.TeacherName
FROM Teacher
WHERE (((Teacher.[TeacherName ])=[Forms]![frmSearch]![cboTeacher]));
However this just opens an input box that displays "Forms!frmSearch!cboTeacher"
How can I take data from the comboboxes and textbox on the form and then use this for a query?
I have tried the following SQL statement for my query:
SELECT Teacher.TeacherID, Teacher.TeacherName
FROM Teacher
WHERE (((Teacher.[TeacherName ])=[Forms]![frmSearch]![cboTeacher]));
However this just opens an input box that displays "Forms!frmSearch!cboTeacher"
How can I take data from the comboboxes and textbox on the form and then use this for a query?