Ok - you "could" right some sql that would run a query that would do all of
this for you in one go - BUT if it was me, I wouldn't - do it in 2 halfs
If you lose half of your data (very easy to do) you would be a little sad ??
So do it by hand (sort of)
Create a copy of your database
Copy your table containing the people's detail (structure only)
Create a new query
Double click all the fields so you have all the data in the table showing in
the query
In the Name column put this in the criteria row Like "* & *"
UnClick the Name column show it does not show in normal view
Create a new calculated column
Put this in
NewName:
Right$([TableName]![NameField],Len([TableName]![NameField])-InStr(1,[TableName]![NameField],"&")-1)
Change the query to an append query (select the new table you just made from
the drop down) and Append To row should fill in for you except for the
calculated column (NewName). In the Append To row select the [name field] in
the new table.
Click append.
Next change the calculated to this
NewName:
Left$([TableName]![NameField],Len([TableName]![NameField])-InStr(1,[TableName]![NameField],"&")-1)
Note the Right has changed to Left
Run the append again and go to your new table and check that's what you
want. If not post another question with what's gone wrong
If you are qwrting it in sql it will look something like this (with only the
name and ID)
SELECT TableName.ID,
Right$([TableName]![NameField],Len([TableName]![NameField])-InStr(1,[TableName]![NameField],"&")-1) AS NewName
FROM TableName;
Good Luck