Check Checkbox

  • Thread starter Thread starter Kate
  • Start date Start date
K

Kate

I have a filed defined as a checkbox. If it's checked then
what do I check the field for in my code? True and False?
 
If Me!NameOfCheckBox = True Then 'Checked = True
<<Do This>>
Else
<<Do That>>
End If
 
Or you could just use:

If NameOfCheckBox Then 'Since a checkbox is boolean it´s true or false just
as it is.
' so by just checking the
checkbox status is the same thing
' as checking if it´s true or
false.
<<Do This>>
Else
<<Do That>>
End If


// Niklas
 
Ok!
I din´t know that so now I have learn something new!

Thank´s for correcting me Jeff!

// Niklas
 
Back
Top