You can use the InStr function to get the position of a character within a
string, and the Left$, Right$, and Mid$ functions to extract part of a
string. So for example (in the Immediate window) the following expression
returns everything up to but not including the first space ...
? left$("two words", instr("two words"," ")-1)
two
You can use expressions like these in an update query to update multiple
records. However, as John says elsewhere in this post, there are all kinds
of potential exceptions to the rule. A significant amount of manual checking
and error correction is likely to be required. Make a back up first, and
don't be in any hurry to delete the old field.
--
Brendan Reynolds (MVP)
http://brenreyn.blogspot.com
The spammers and script-kiddies have succeeded in making it impossible for
me to use a real e-mail address in public newsgroups. E-mail replies to
this post will be deleted without being read. Any e-mail claiming to be
from brenreyn at indigo dot ie that is not digitally signed by me with a
GlobalSign digital certificate is a forgery and should be deleted without
being read. Follow-up questions should in general be posted to the
newsgroup, but if you have a good reason to send me e-mail, you'll find
a useable e-mail address at the URL above.