Triple Staee Check box in A2003

P

Peter

Has anyone used a triple state checkbox in A2003?
I find that when I change the checkbox property to triple state it then
effectively locks the checkbox in its null state.

Peter
 
A

Allen Browne

Yes, this is one of the bad side-effects of the themed controls in A2003.

You can work around the problem by turning off themed controls under:
Tools | Options | Forms/Reports
or by setting your Windows XP themes to "Classic".
 
P

Peter

Thanks Allen. I think there's more to it than this though, because I can
replicate the malfunction on 2 Win2000 machines. One of these has A2000 and
A97 and the same malfunction exists in these versions. So maybe Off2003 is
installing something to do with screen behaviour which goes beyond its own
direct scope
I have tried your fix and I can't get any different behaviour.

Thanks

Peter
 
P

Peter

It's rather more basic than I imagined.
Access lets you set triple state for an mdb file but this just can't work
can it as the yes/no field only has 2 states.
If you use SQLServer bit field as the source then triple state operates
correctly in data terms. There is still an issue of whether you can
distinguish Null and false but that's something else entirely.

Peter
 
A

Allen Browne

Okay, that's correct.

The Yes/No field type in JET does not support Null, so the triple-state only
works if the control is unbound, or you can bind it to an Integer type field
so it can be Null.
 
A

Allen Browne

John, I agree that there are *many* situations where Null is a desirable
value to have in a yes/no field. The problem is not the idea, but the
practice, i.e. Microsoft chose to cripple JET (Access) so it does not
support Null in a y/n data type.

It's not a major limitation though: not too hard to use a Number field (size
Integer) instead of a yes/no field, and use a check box for the interface.
Numbers do accept null, so if you turn on the check box's TripleState
property, it cycles through the values -1 (true), 0 (false), and null.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top