I think this is a weird one. I've got a query doing this same thing working fine in another situation, but I get the attached error every time my subroutine tries to call this query. I tried it directly in the subroutine and now I've tried having the subroutine call the query. I get this error every time.
This is the subroutine:
Code:
Private Sub Check696_Click()
If Check696 = True Then
Form_Employees.FilterOn = True
Employee_Select.RowSource = [Employees_Current]
Else
Form_Employees.FilterOn = False
Employee_Select.RowSource = [Employees_All]
End If
Employee_Select.value = Null
End Sub
Here is the query:
Code:
SELECT Employees.ID, [Employees].[First_Name] & " " & [Employees].[Last_Name] AS Name, Employees.Last_Date
FROM Employees
WHERE (((Employees.Last_Date) Is Null))
ORDER BY [Employees].[First_Name] & " " & [Employees].[Last_Name];
I suspect my problem/solution is with quotations, but I'm stuck.