totn Access Functions

MS Access: CCur Function

This MSAccess tutorial explains how to use the Access CCur function with syntax and examples.

Description

The Microsoft Access CCur function converts a value to currency.

Syntax

The syntax for the CCur function in MS Access is:

CCur( expression )

Parameters or Arguments

expression
The value to convert to currency.

Returns

The CCur function returns a currency value.

Applies To

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

  • Access 2019, Access 2016, Access 2013, Access 2010, Access 2007, Access 2003, Access XP, Access 2000

Example in VBA Code

The CCur function can be used in VBA code in Microsoft Access.

For example:

Dim LValue As Double
Dim LCurValue As Currency

LValue = 123.4567812
LCurValue = CCur(LValue)

In this example, the CCur function would return the value 123.4568. The variable called LCurValue would now contain 123.4568.