K Kate May 1, 2004 #1 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?
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?
P PC Datasheet May 1, 2004 #2 If Me!NameOfCheckBox = True Then 'Checked = True <<Do This>> Else <<Do That>> End If
N Niklas Östergren May 1, 2004 #3 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
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
J Jeff Conrad May 2, 2004 #4 Or you could just use: If NameOfCheckBox Click to expand... That's not recommended because it can introduce a bug in Access. See: http://www.mvps.org/access/bugs/bugs0005.htm (Near the bottom of the page)
Or you could just use: If NameOfCheckBox Click to expand... That's not recommended because it can introduce a bug in Access. See: http://www.mvps.org/access/bugs/bugs0005.htm (Near the bottom of the page)
N Niklas Östergren May 2, 2004 #5 Ok! I din´t know that so now I have learn something new! Thank´s for correcting me Jeff! // Niklas