Take a look at Left, Right, and Mid functions. Access in its native mode
does not have a substring function. Mid probably comes closest.
LEFT(SomeString,N)
returns the left most n characters of a field, variable, or string
Right(Somestring,N) returns the rightmost n characters
Mid(SomeString,N,N1) returns N1 characters starting at the Nth position.
You might find Instr handy also. It can be used to determine the
position of a specific character (such as a comma or a space) in a string.
If you had a field with Spencer, John
Left([Yourfield], Instr(1,[YourField],",")-1)
could be used to return Spencer
And
MID([YourField,Instr(1,[YourField],",")+2),50)
could be used to return John
'====================================================
John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
'====================================================