I'm using a textbox to insert the age of a person.
Then I have assigned txt.Datafield=age, txt.DataSource=adolevel (adodc control) and the field "age" on the database table has numeric type. The problem exists when the field in the table has already a value and the user erase the value (txtbox in white) as the control lose the value it should be update on the table as null, however if fails and sends an error message (the typical one when the type is not correct) I guess that it understand that a blank is not numeric or null.
The other controls don't give me this problem (text or date). I know that I could take this text box control off the field and do it manually; before updating controlling if the textbox is white and assigning rs.Fields("age")=null.
But I would like to know if I can do it automatically.
Thank you.
Then I have assigned txt.Datafield=age, txt.DataSource=adolevel (adodc control) and the field "age" on the database table has numeric type. The problem exists when the field in the table has already a value and the user erase the value (txtbox in white) as the control lose the value it should be update on the table as null, however if fails and sends an error message (the typical one when the type is not correct) I guess that it understand that a blank is not numeric or null.
The other controls don't give me this problem (text or date). I know that I could take this text box control off the field and do it manually; before updating controlling if the textbox is white and assigning rs.Fields("age")=null.
But I would like to know if I can do it automatically.
Thank you.