I have a checkbox in the datawindow, It can be checked and unchecked. The default value in the db is 0. When Its checked, the db value is updated to 1 and on uncheck uthe value is updated to 0 again.
However, I want to update the database only if it has value 0. If it is already 1, then I don't want to change it back to 0. So please tell me how can I do that?
Here is the code from my datawindow for the checkbox :
Here is the code for that:
column=(type=decimal(0) update=yes updatewhereclause=yes name=ok dbname="table.ok" values="1/0" )
However, I want to update the database only if it has value 0. If it is already 1, then I don't want to change it back to 0. So please tell me how can I do that?
Here is the code from my datawindow for the checkbox :
Here is the code for that:
column=(type=decimal(0) update=yes updatewhereclause=yes name=ok dbname="table.ok" values="1/0" )