Hi
I compare this where ChkSpaceHeatingCoil is a checkbox in my form and where DRPUBLICVIEW.Item("Space_heating_coil") is a field that I have in my table that is declared as integer. When ChkSpaceHeatingCoil.Checked is set to True I put 1 in my record. Now this :
If Me.ChkSpaceHeatingCoil.Checked <> DRPUBLICVIEW.Item("Space_heating_coil") Then haschanges = 1
set the haschanges variable to 1 even if my record is set to 1 and my checkbox is checked.
Why it does this and how can I solve it?
Thanks in advance
I compare this where ChkSpaceHeatingCoil is a checkbox in my form and where DRPUBLICVIEW.Item("Space_heating_coil") is a field that I have in my table that is declared as integer. When ChkSpaceHeatingCoil.Checked is set to True I put 1 in my record. Now this :
If Me.ChkSpaceHeatingCoil.Checked <> DRPUBLICVIEW.Item("Space_heating_coil") Then haschanges = 1
set the haschanges variable to 1 even if my record is set to 1 and my checkbox is checked.
Why it does this and how can I solve it?
Thanks in advance