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: Chr Function

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

Description

The Microsoft Access Chr function returns the character based on the NUMBER code. See list of ASCII codes.

Syntax

The syntax for the Microsoft Access Chr function is:

Chr ( number_code )

Parameters or Arguments

number_code is the NUMBER used to retrieve the character.

Applies To

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

Example

Chr (87) would return "W"
Chr (105) would return "i"

Example (in VBA Code)

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

Dim LResult As String

LResult = Chr (87)

In this example, the variable called LResult would now contain the value "W".

Example (in SQL/Queries)

You can also use the Chr function in a query in Microsoft Access.

Microsoft Access