tech on the net
Home About Us Feedback Site Map


Access Excel Word


SQL Oracle / PLSQL SQL Server MySQL MariaDB PostgreSQL

Web Development

HTML CSS Color Picker


C Language


ASCII Table Linux UNIX Java Clipart Joke of the Moment
Share this page:

MS Access: Left Function

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


The Microsoft Access Left function extracts a substring from a string, starting from the left-most character.


The syntax for the Microsoft Access Left function is:

Left ( 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 left-most character.


If number_of_characters exceeds the number of characters in text, the Left function will return text.

Applies To

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


Left ("Tech on the Net", 4) would return "Tech"
Left ("Alphabet Soup", 5) would return "Alpha"
Left ("Alphabet", 20) would return "Alphabet"

Example (in VBA Code)

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

Dim LResult As String

LResult = Left ("Alphabet",3)

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

Example (in SQL/Queries)

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

Microsoft Access