In Access, the LTrim function returns a copy of a string with leading spaces removed.
The syntax for the LTrim function is:
LTrim ( string )
The string argument can be any string expression. If string contains Null, Null is returned.
Example
|
VBA Code
|
This example uses the LTrim function to strip leading spaces from a string variable. Now the MyString variable would contain the value “Access “.
SQL query
You can also use the LTrim function in a query.
|