This has to be a simple solution for you gurus. I need to reset a CheckBox flag on a form after a business rule is carried out.
I noticed the check box gives the value -1 for Checked, and 0 for Unchecked.
So, when the box is checked, I want to clear it after carrying out a business rule. The code I tried doesn't work, it's as follows:
'Turn off WarehouseFlag after linking to Account
If Me.WarehouseFlag = -1 Then
Me.WarehouseFlag = 0
End If
How do I do this? It must be the fact the values are numbers, and the checkbox isn't a number field??
Thanks in advance!
Mike
I noticed the check box gives the value -1 for Checked, and 0 for Unchecked.
So, when the box is checked, I want to clear it after carrying out a business rule. The code I tried doesn't work, it's as follows:
'Turn off WarehouseFlag after linking to Account
If Me.WarehouseFlag = -1 Then
Me.WarehouseFlag = 0
End If
How do I do this? It must be the fact the values are numbers, and the checkbox isn't a number field??
Thanks in advance!
Mike
