SubString Function (Access 2013 custom web app)

Office 2013

Returns part of a text expression.

Last modified: June 29, 2012

Applies to: Access 2013 | Office 2013

SubString (TextExpression, Start, Length)

The SubString function contains the following arguments.

Argument name



A text expression.


An integer expression that specifies where the returned characters start. If start is less than 1, the returned expression will begin at the first character that is specified in expression. In this case, the number of characters that are returned is the largest value of either the sum of start + length- 1 or 0. If start is greater than the number of characters in the value expression, a zero-length expression is returned.


A positive integer expression that specifies how many characters of the expression will be returned. If length is negative, an error is generated and the statement is terminated. If the sum of start and length is greater than the number of characters in expression, the whole value expression beginning at start is returned.

© 2014 Microsoft