Tupacmoche
Registered User.
- Local time
- Today, 06:21
- Joined
- Apr 28, 2008
- Messages
- 291
I can't implement 'All' in a combo box control. I set up a field in my table called 'complete' its data type is bit and my database is mssql 2008 R2. I set the default value to zero (0). On the Access side, I made a table called tblComplete with three columns. The first is Description {All, Complete, Incomplete} values the second is Complete {'', 1, 0} Values. The code for the combo box AfterUpdate is :
Me.Filter = "(Complete) = " & Me.CboIsComplete
Me.FilterOn = True
Me.CboSigner.SetFocus
Finally, I have a qry that runs against the table tblComplete table above as follows:
SELECT
tblComplete.Description,
tblComplete.Complete
FROM tblComplete
UNION
Select "All" as Description,
'' as Complete
From tblComplete;
This gives me a table with a Description column 'All', 'Complete', 'Incomplete' and second column Complete '' (empty string), 1, 0
How can I get this to work?:banghead:
Me.Filter = "(Complete) = " & Me.CboIsComplete
Me.FilterOn = True
Me.CboSigner.SetFocus
Finally, I have a qry that runs against the table tblComplete table above as follows:
SELECT
tblComplete.Description,
tblComplete.Complete
FROM tblComplete
UNION
Select "All" as Description,
'' as Complete
From tblComplete;
This gives me a table with a Description column 'All', 'Complete', 'Incomplete' and second column Complete '' (empty string), 1, 0
How can I get this to work?:banghead: