Home Privacy Policy Feedback Link to us Site Map

Access: CVar Function


Question:  How do I convert a value to a variant?


Answer:  To convert a value to a variant, use the "CVar" function. The syntax for the CVar function is:

CVar( expression )

For example:

Dim LValue As Variant

LValue = CVar(8)

The variable called LValue would now contain the variant value of "8".