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
Share this page:

MS Access: Asc Function

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

Description

The Microsoft Access Asc function returns the NUMBER code that represents the specific character.

Syntax

The syntax for the Microsoft Access Asc function is:

Asc ( string )

Parameters or Arguments

string is the specified character to retrieve the NUMBER code for. If more than one character is entered, the function will return the value for the first character and ignore all of the characters after the first.

Applies To

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

Example

Asc ("W") would return 87
Asc ("Wednesday") would return 87
Asc ("x") would return 120

Example (in VBA Code)

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

Dim LResult As Integer

LResult = Asc ("W")

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

Example (in SQL/Queries)

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

Microsoft Access

View a listing of the ascii values.