Hi
I have a datagrid in my form.
I would like to validate if the user let a cell blank, to put the value 0 in it. I tried many event but it seems that I can't find which one is the right one.
Thanks in advance
On the AfterInsert set the default values for all fields where you want ones. Then, on the BeforeColUpdate check the user's input value.
Another way would be to use the RowColChange event.
And yet another would be to declare your ADO recordset object variable in the declarations section using WithEvents and use the RecordWillChange event.
(If you are using the ADODC then you do not need to do the declaration as mentioned)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.