M
Maury Markowitz
I have a database that holds a boolean-like value as a "1" or an
"0" (or null, which is "0") in an int field. When I bind this to a
checkbox in the display, changing it to the1 state gives me an error
that the value is invalid. It appears that checkboxes can only use -1
and 0 (and null). Oddly, the checkbox displays the 1's and 0's
properly - 1's come out as "on" and 0's as "off".
Is there a way to do this? I tried hooking event handlers into Before
and AfterUpdate, onClick and even MouseDown. Most of these fired after
the error was popped up, so they didn't help. MouseDown did work, but
when I changed the value in the code (Me!theCheck = -1) it didn't seem
to actually change anything.
Maury
"0" (or null, which is "0") in an int field. When I bind this to a
checkbox in the display, changing it to the1 state gives me an error
that the value is invalid. It appears that checkboxes can only use -1
and 0 (and null). Oddly, the checkbox displays the 1's and 0's
properly - 1's come out as "on" and 0's as "off".
Is there a way to do this? I tried hooking event handlers into Before
and AfterUpdate, onClick and even MouseDown. Most of these fired after
the error was popped up, so they didn't help. MouseDown did work, but
when I changed the value in the code (Me!theCheck = -1) it didn't seem
to actually change anything.
Maury