changing values of yes/no variable

jlabre01

Registered User.
Local time
Yesterday, 21:05
Joined
May 26, 2008
Messages
62
Hi,

I'd like to know if there's a way to change the value of a yes/no field by using a command button? I want to show whether an item is in stock or not and if it's removed i want the stock to reflected that it's not ther.

jlabre01
 
-1 and 0 I believe

OnClick
If Yes/NoBox = 0 Then
Yes/NoBox = -1
Else
Yes/NoBox = 0
End If

This should make a toggle switch.
 
Or even

FieldName = Not FieldName
 
what if put a check box on the form to represent the field, how would i uncheck it?

jlabre01
 
Substitute

Me.CheckboxName

in either method above.
 

Users who are viewing this thread

Back
Top Bottom