Try setting the subform's Data Entry to Yes (property dialog, data tab)
> Thank You
> I have subform and form (Master form)
[quoted text clipped - 27 lines]
> ========================
> Why all this code not work correctly
> Thank You
> I have subform and form (Master form)
[quoted text clipped - 27 lines]
> ========================
> Why all this code not work correctly
In principle, all of these should work, and do in a test form I set up. Is
checkbox1 a bound control, or unbound? Is it actually False when you test
the code, or is it possible that it is Null (looking rather gray instead of
white)? What happens if you check it and then un-check it, and then try to
add a record in the subform?

Signature
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
a - 18 Feb 2008 18:48 GMT
Thank Mr
Dirk Goldgar
About Your Reply And Help
The Code work when assign defult value to checkbox1 to 0
<dg@NOdataSPAMgnostics.com.invalid> wrote in message
news:3D974EFC-8039-4BC5-9E44-E7052773498B@microsoft.com...
>> Thank You
>> I have subform and form (Master form)
[quoted text clipped - 33 lines]
> instead of white)? What happens if you check it and then un-check it, and
> then try to add a record in the subform?
Dirk Goldgar - 19 Feb 2008 04:22 GMT
> Thank Mr
> Dirk Goldgar
> About Your Reply And Help
You're welcome.
> The Code work when assign defult value to checkbox1 to 0
That implies that the checkbox was Null before, and that's why the code
wasn't working. I trust that your fix has corrected the problem. If not,
write back.

Signature
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)