True/False Fields

MS_Access_Amature

Registered User.
Local time
Today, 03:45
Joined
Nov 10, 2010
Messages
56
In my Employees table i have a Yes/No field named [Active].

I'm trying to make a ComboBox that allows you to select view Active, Inactive, or All employees. How do I do the All part,?

Active:
Me.RecordSource = "SELECT * FROM Employees WHERE [Active]= True"

Inactive:
Me.RecordSource = "SELECT * FROM Employees WHERE [Active]= False"

All:
Me.RecordSource = "SELECT * FROM Employees WHERE [Active]= ???"
 
Active:
Me.RecordSource = "SELECT * FROM Employees WHERE [Active]= True"

Inactive:
Me.RecordSource = "SELECT * FROM Employees WHERE [Active]= False"

All:
Me.RecordSource = "SELECT * FROM Employees "
 

Users who are viewing this thread

Back
Top Bottom