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

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!
 
S

SusanV

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top