Ms Access Right Function Syntax - Microsoft Access Tutorial ✅ - March 2025



Ms Access Right Function Syntax

Ms Access Right Function is the string function in microsoft access database to take the characters or words from the right side of a string. The string can be described as word(s) or text, e.g. "Please" or "Hey you!". Meanwhile, the character is the letter or number such as "A", "2", or even symbol like "$".

We're using microsoft access 2016, to use the MS Access Right Function, input this syntax:

Right ( string, number_of_characters )

For example, look at the sample below:

Right ("Please come here!", 5)

The result will be: "here!".

The number of characters is the amount of characters to be taken. If you change the number of characters into 7, the result will be changed into: "e here!". Please note that the space is considered as character too. If the number of characters is exceeded the amount of the characters (e.g. Right ("Mimo", 20)), then it will return all the character's value without errors or additional spaces.

In case if you want to use the Right Function into the value of a menu, you only have to change the String in the syntax into the menu name. Look into this picture below for the example.

 

Ms Access Right Function

 


In this case, we want to show only the last 4 characters of the book title in a query. So in Criteria, put the syntax. Change the string to the field name with the square brackets ([]) outside.

 

Ms Access Right Function - 2

 


Aside with the query properties box, you can use the function to query SQL syntax (see the red underlined code). You can use the function into VBA Code on Macros. For VBA Code, sometimes you may see variation with variables. You can see the example here:

Dim BookSubject, BookCategory BookSubject = "Drawing 3D" BookCategory = Right (BookSubject, 2)

The BookCategory will return as "3D", not "ct" from BookSubject. This is because the BookSubject value is Drawing 3D. The 'BookSubject' and 'BookCategory' in just a variable name that can be changed. For example: A = "Drawing 3D" or B = Right (A, 2). The result will be same too: 3D.

The Right function only works for string. It will not work to other data type, such as boolean or short unless being converted.

Frequently Asked Questions

Which Microsoft Access software version work with this database?

This database template will work optimally on MS access software version 2016 and the latest 2019 version. You can use the older version but it may caused bug or error.

How to Download This Access Database Template?

Simply go to our homepage and browse the template you want to use, you can also use search form function to get templates in specific keyword. You can Register Here and become our paid member if you want to get all templates without download limitation in unlocked version.

Is It Safe To Download This Database from This Website?

We've been serving our users since 2011, you can verify here. We are always committed to build a secure and user-friendly database for our users, and thats why we still exist in this business until today. You can also verify our website security using McAfee, and you can directly scan the downloaded database using VirusTotal or any other Antivirus software you have in your computer. All access databases and templates on this website are 100% free from virus, malmware or any other harmful objects.

Can I Modify The Database Template?

Yes, you can modify all of our templates to fit your needs as long its for personal, education or non-profit use only. If you want to modify and use it for commercial or business purposes, you have to buy extended licence separately. Read more: Terms of Use.

How to Download Microsoft Access 2016 or 2019 Software?

You can purchase Microsoft Office Access here:

Can I Request for Access Database Modification Service to Fit My Needs?

Yes, we are open for any kind of modification service on microsoft access templates and databases. You can send your access modification request here.

How Can I Contact Microsoft Access Programmer?

You can contact our programmer using the contact page on this website, or if you need faster response you can send us WhatsApp Message to +1-(786)-886-3099 (working hours only) and Priority support only available for paid members. If you don't get answer by phone due to heavy work-load on all of our staffs, we suggest you to send a whatsapp message or email admin@access-templates.com