tech on the net
Home About Us Feedback Site Map

Microsoft

Access Excel Word

Database

SQL Oracle / PLSQL SQL Server MySQL MariaDB PostgreSQL

Web Development

HTML CSS Color Picker

Language

C Language

More

ASCII Table Linux UNIX Java Clipart Joke of the Moment

Other Sites

CheckYourMath BigActivities DigMinecraft
Share this page:

MS Access: CDec Function

Learn how to use the Access CDec function with syntax and examples.

Description

The Microsoft Access CDec function converts a value to a decimal number.

Syntax

The syntax for the Microsoft Access CDec function is:

CDec( expression )

Parameters or Arguments

expression is the value to convert to a decimal number.

Applies To

The CDec function can be used in the following versions of Microsoft Access:

Example (in VBA Code)

The CDec function can be used in VBA code in Microsoft Access. For example:

Dim LDecimal As Double

LDecimal = CDec(8.45 * 0.005 * 0.01)

The variable called LDecimal would now contain the value of 0.0004225.