i tried this : To add an (All) item to the list, return to Design view and select the combo box control. Then, replace the Row Source property with the following SQL statement:
SELECT City FROM Employees
UNION SELECT "(All)" FROM Employees;
from here : https://msdn.microsoft.com/en-us/library/aa140084%28v=office.10%29.aspx
My Sql statement looks like this :
SELECT LastName FROM Employee
UNION SELECT "(All)" FROM Employee;
I can see the (All) in my drop down,the problem is when I select the Option (All) i receive a blank page.
Am I missing something? Do I need some VBA Code ? This is my current Code:
Private Sub cboFilter2_AfterUpdate()
Dim myFilter As String
myFilter = "Select * from Employee_Filter_Query where ([LastName] = '" & cboFilter2 & "')"
Me.Employee_Filter_subform.Form.RecordSource = myFilter
Me.Employee_Filter_subform.Form.Requery
End Sub
Br,