' Okay, I created a table, with the table name being "tblNames", and 3 fields, FullName, LName, and FName.
' I then put a bunch of test names in the FullName field, in format "FirstName LastName".
' The following code then populates the Last and First name fields.
' NOTE- Common programming mistake: Do not give ANY fields, or variables, a "restricted" name.
' Some instances of this include "Name", "Date", "String".
' If you name a field, table, or variable (or anything else, for that matter) you'll have unpredictable
' results, and sometimes problems referenceing the data.
' One thing I did not take into account, is Middle Initials, or titles, like Dr., Mr., Mrs., etc.
Sub FixNames()
Dim dbs As Database
Dim rst As Recordset
Dim lname As String
Dim fname As String
Dim fullname As String
Dim i As Integer
Set dbs = CurrentDb
' Set the recordset to table "tblNames"
Set rst = dbs.OpenRecordset("tblNames"

rst.MoveFirst
While Not rst.EOF
' Set temp "fullname" variable to databases' FullName variable
fullname = rst!fullname
i = InStr(fullname, " "

fname = Mid(fullname, 1, i - 1)
lname = Mid(fullname, i + 1)
' Tell Access we're going to edit the record now.
rst.Edit
' Set the records' FName and LName fields to the fName and LName variables
rst!fname = fname
rst!lname = lname
' Set the Fullname field of the record, to the format "LastName, FirstName"
rst!fullname = lname & ", " & fname
' Update the record
rst.Update
' Move to the next record
rst.MoveNext
Wend
' Release the object references.
Set rst = Nothing
Set dbs = Nothing
End Sub