I have a form to enter student information; in that form, I have a combo box to list the parents name. I want to use the student’s last name as a query criteria for the combo box. However, its query result is empty. Here’s my query:
SELECT DISTINCTROW GUARDIANS.GUARDIAN_ID, GUARDIANS.LAST_NAME & “,” & GUARDIANS.FIRST_NAME & ” ” & GUARDIANS.MIDDLE_NAME AS Expr1
FROM GUARDIANS, students
WHERE (((GUARDIANS.LAST_NAME)=forms![frmStudents]![Last_name]));
Can someone tell me what’s wrong with the query. Thanks.