hi guys. Can I throw in a circumstance where a Null value result can
make sense for a Yes/No field? I have a Form/Subform thing going on --
Parent form (and its table) is called 'Employees'. Child table is
called 'Life'.
Parent = list of my employees.
Child = those who have elected Life Insurance coverage, with a
Yes/No field for Enrolled, along with other data fields.
On the Employees form, I have a subform that shows me the data from the
Life table. Not every Employee has a Life record.
In Access 2003 (as opposed to Access 2000), the Enrollment checkbox is
now showing greyed out if a Life record was not found. (And the logic
is also triggering a Premium Calculation because it thinks the field
has something in it, when it really returned no child record.)
My desired result (which was working in A2000) is to have both No
values and Null values leave the checkbox blank.
Any thoughts?
Interestingly, if I include 2 checkboxes on the form, both linked to
the Enrollment field, with one checkbox's TripleState set to Yes and
the other to No, they act the same...
As I said, my logic for Premium Calc is also being triggered in A2003
(not in A2000)... that logic is something like:
"If (Not Me!Enrolled) Then do the calc"
Any idea why these 2 things are working differently in A2003?
Thanks for any help/insight you can provide!
John
Allen said:
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.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Reply to group, rather than allenbrowne at mvps dot org.
"Peter"
[email protected] wrote in message
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
"Peter"
[email protected] wrote in message
news:%
[email protected][/i][/i]
[/QUOTE]