I would highly recommend that you change your data structure. You should
store each part of the name in a separate field. What if you want to sort
by last name? What if you want to address a letter with the first name and
then last name? What if you want to print "Dear:" then the first name in
your letters?
Lots of reasons to do this.
I'm sure you'll get a more detailed answer, but you need to grab the first
five characters Left([NameField],5)
Then, you need to use instring and left to grab only up to the first space
(if any). There are previous posts out there that you can find to do this.
It uses INSTR and subtracts one postion.
A couple of issues though. What if you have J R Ewing? Do you only want
to find "J"? Or maybe it was enterd as J. R. Ewing?
--
Rick B
Nancy said:
the first name, middle initial, last name are all stored in a single
field.
I only want the 1st 5 characters of the first name ... does anyone know
how
do I parse this out ???
data in field : ---- what I want:
Jon L. Jones --- Jon
Lawrence Smith --- Lawre
Thanks,
Nancy