Assuming that your FullName field always has three names in it and the order is
First Middle Last and this is a one shot deal. I would probably be lazy and use
a series of queries to do this.
FIRST-make a backup of your data. It is always nice to be able to get back to
the starting point, when something goes awry. I would also add a temporary full
name field and populate it with all the data in the fullName field.
BackUp Copy:
UPDATE [YourTableName]
SET [BackupFullNameField] = Trim([FullName])
WHERE [FullName] Is Not Null
FirstName:
UPDATE [YourTableName]
SET [FirstNameField] =
Trim(Left([BackupFullNameField],Instr(1,]BackupFullNameField]," ")))
WHERE [BackupFullNameField] Like "* *"
Strip Off the first name:
UPDATE [YourTableName]
SET [BackupFullNameField] =
Trim(Mid([BackupFullNameField],Instr(1,]BackupFullNameField]," ")))
WHERE [BackupFullNameField] Like "* *"
MiddleName - only if there is a space in the name:
UPDATE [YourTableName]
SET [MiddleNameField] =
Trim(Left([BackupFullNameField],Instr(1,]BackupFullNameField]," ")))
WHERE [BackupFullNameField] Like "* *"
Strip off the middle name
UPDATE [YourTableName]
SET [BackupFullNameField] =
Trim(Mid([BackupFullNameField],Instr(1,]BackupFullNameField]," ")))
WHERE [BackupFullNameField] Like "* *"
LastName:
UPDATE [YourTableName]
SET [LastNameField] = Trim([BackupFullNameField])
WHERE [BackupFullNameField] Is Not Null
That could all be done in one query, but it would be hard to read and hard to
understand. Since you are doing this one time, go the easy way.