I forget that Trim removes only leading or trailing spaces. Karl offered
one suggestion. Another is something like this, which I think will do it
all in one shot, assuming the format is always the same as you have shown:
Left([Ordered by name],Instr([Ordered by name]," ")) & Trim(Right([Ordered
by name],Len([Ordered by name]) - Instr([Ordered by name]," ")))
It would be best to separate the FirstName, MI, and LastName into separate
fields. If you are working with imported data that you are not storing, it
would probably be best to use a query to parse the data into the three
fields.
Schwimms said:
Ordered by: trim([Ordered by name] )
BruceM said:
Post the code in which the function is used.