Home All Groups Group Topic Archive Search About

check box data binding in VB.Net 2003

Author
22 Feb 2006 1:56 PM
Hardik Shah
Hi,

I have created data form from wizard for a table which has a field with bit
type .  The table has one field with not null value .
However, I fill the field , however,  it gives following error at the time
of update command.

_field_name does not allows null.

After removing checked item from Form. It runs well.

What is wrong ???

Thanks in advance.

Hardik Shah.

Author
22 Feb 2006 3:17 PM
Cor Ligthert [MVP]
Hardik,

You need probably for this the binding events to change the null to
unchecked.

See this sample with a little bit more difficult problem on our website

The binding events are at the bottom.

http://www.vb-tips.com/default.aspx?ID=c4832a2a-2b95-4ded-93d9-4deb7fa4a0b8

I hope this helps,

Cor


Show quoteHide quote
"Hardik Shah" <har_sha***@hotmail.com> schreef in bericht
news:%23ddyoc7NGHA.3064@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> I have created data form from wizard for a table which has a field with
> bit
> type .  The table has one field with not null value .
> However, I fill the field , however,  it gives following error at the time
> of update command.
>
> _field_name does not allows null.
>
> After removing checked item from Form. It runs well.
>
> What is wrong ???
>
> Thanks in advance.
>
> Hardik Shah.
>
>