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

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

Description

The Microsoft Access Right function extracts a substring from a string starting from the right-most character.

Syntax

The syntax for the Microsoft Access Right function is:

Right ( text, number_of_characters )

Parameters or Arguments

Text is the string that you wish to extract from.

Number_of_characters indicates the number of characters that you wish to extract starting from the right-most character.

Applies To

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

Example

Right ("Tech on the Net", 3) would return "Net"
Right ("Alphabet", 5) would return "habet"

Example (in VBA Code)

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

Dim LResult As String

LResult = Right ("Alphabet",3)

The variable LResult would now contain the value of "bet".

Example (in SQL/Queries)

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

Microsoft Access