using visual basic what is the value of the yes/no box?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to using vb code using the If Then Else function. I need the code
to check if a check box (Yes/no field) has been checked (Yes). If it has i
want it show an error box. If not i want it to set the check box to yes
(checked) and then open another form.

I can get it open the error box and the form but it doesnt seem to recognise
the difference between checked and non-checked and also does not apply the
check either.

PLEASE HELP!
 
Hi Dave,

For a checked box you can use either True, Yes, or -1, for an Unchecked box
you can use either False, No, or 0
 
Back
Top