Access Mid Function

Last updated: August 25, 2026.

The Access Mid function returns characters from the middle of a string. Character positions start at 1.

Syntax

Mid(string, start [, length])
ArgumentDescription
stringRequired source expression.
startRequired 1-based position of the first character.
lengthOptional number of characters. If omitted, Access returns the rest of the string.

Examples

Mid("WebCheatSheet", 4, 5)   ' Cheat
Mid("INV-2026-0042", 5, 4) ' 2026
Mid([ProductCode], 3)       ' From character 3 onward

If start is greater than the string length, the result is an empty string. A Null source produces Null, so use Nz() when an empty string is the intended fallback.

admin

admin

Leave a Reply

Your email address will not be published.