Access: CBool Function
Question: How do I convert a value to a boolean?
Answer: To convert a value to a boolean, use the "CBool" function. The syntax for the CBool function is:
CBool( expression )
For example:
Dim LCompare as Boolean
LCompare = CBool(1=2)
In this example CBool(1=2) would return false. The variable LCompare would now contain the value false.