The function runs, but returns the same text string that I started with. I
have determined that the space is ALWAYS the first character. I would think
the Trim or LTrim function would remove it, but it does not.
Any other ideas? There is definately a space before the first character.
If you have Access 2000 or newer you can use the Replace Function.
[FieldName] = Replace([FieldName]," ","")
This will remove ALL spaces within the string.
See VBA help for the additional arguments needed to start at a
specific point or to limit the number of times this will run in a
field.
Then the first character is NOT a standard space character. You might try
modifying the function you were given. Open your table, select the character
that you see as a space, open the function and paste it into the Const
WHITESPACE = " " after you remove the space that is there. Now try using the function.
IF EVERY record has the extra character at the beginning, you could try using
the Mid function.