CDec
Using the CDec Function
In this tutorial you will learn how to use the CDec Function.
The CDec function returns a Decimal.
=CDec( expression )
expression the value you wish to convert to a Decimal
FORM
In a Form you could set the Default Value of a Textbox to
=CDec(12)
VBA
In a Form add a TEXTBOX control and rename it "txtCDec", then you could add the following in the Load Event.
Private Sub Form_Load()
txtCDec = CDec(12)
End Sub
Course
Access Expert 26
Seminars
Access SQL 2
Search
You can find more about this by searching the website.
By: Alex Hedley
Click here to sign up for more FREE tips
|