I threw this together today.
Works from a command button and should work from the Active form event.
Code:
Dim rst As DAO.Recordset
Dim A As Integer
Dim Avar As Variant
Set rst = CurrentDb.OpenRecordset("select * FROM table4")
Do While Not rst.EOF And Not IsNull(rst!Testtext)
Avar = Split(rst("Testtext"), "-")
With rst
.Edit
!Testtext = Avar(A)
.Update
.Bookmark = .LastModified
End With
'Debug.Print Avar(A), I
rst.MoveNext
Loop
rst.Close
Set rst = Nothing
End Sub
See how it works.
Needs error handling.
Dale