D
doyle60
I have a friend who built a wonderful database but mistakenly put too
much information in one field. For a table of People, he put into one
field the following:
George Mitchell (b. 1976), husband of Mrs. Mitchell (1978-1999)
Hank Natty Barnes (1899-1901), brother of so and so.
Nelly Margeret Stevens (1978-1999) actress
Telsea "Minnie" Mack-Evens (b. 1878)
It has about a thousand records with data similar to the above.
I want to know how to split the above, using a query, into five fields.
Here are the fields and the rules:
FirstName:
If there are three or more words before the first peren, put the first
two words, if two or one word, put the first word only. (Best to treat
hypenations as one word but this can be hand corrected later).
LastName:
Put the word before the first peren.
BirthYear:
Some cells have two sets of perens, so only for the first set if it
takes this form (b. 9999), put 9999, or if it takes this form
(9999-9999), then put 9999 (the birth year, of course).
DeathYear:
If the cell has (9999-9999) then give me 9999 (the last year). No
cells have (d. 9999).
Comment:
All the field's comment after the second peren, beginning with the
first letter.
Even after this, much hand correcting, though a thousand records will
be done.
Thanks for your help,
Matt
much information in one field. For a table of People, he put into one
field the following:
George Mitchell (b. 1976), husband of Mrs. Mitchell (1978-1999)
Hank Natty Barnes (1899-1901), brother of so and so.
Nelly Margeret Stevens (1978-1999) actress
Telsea "Minnie" Mack-Evens (b. 1878)
It has about a thousand records with data similar to the above.
I want to know how to split the above, using a query, into five fields.
Here are the fields and the rules:
FirstName:
If there are three or more words before the first peren, put the first
two words, if two or one word, put the first word only. (Best to treat
hypenations as one word but this can be hand corrected later).
LastName:
Put the word before the first peren.
BirthYear:
Some cells have two sets of perens, so only for the first set if it
takes this form (b. 9999), put 9999, or if it takes this form
(9999-9999), then put 9999 (the birth year, of course).
DeathYear:
If the cell has (9999-9999) then give me 9999 (the last year). No
cells have (d. 9999).
Comment:
All the field's comment after the second peren, beginning with the
first letter.
Even after this, much hand correcting, though a thousand records will
be done.
Thanks for your help,
Matt