FlexGrid
While saving the flexgrid empty cell values, it is saving as 0 in table
For Example
Flexgrid
ID Value1 Value2
001 1
002
....
Saving...
Query
With flexgrid
insert into table1 values (NULLIF('" & .TextMatrix(i, 0) & "', '0'), NULLIF('" & .TextMatrix(i, 1) & "', '0'), NULLIF('" & .TextMatrix(i, 2) & "', '0'))
End with
Table1
ID Value1 Value2
001 1 0
002 0 0
It should not allow save '0' values in the table, It should save as the null column.
Expected Output
ID Value1 Value2
001 1
002
How to solve the probelm.
Need Help