I have the following code:
DoCmd.OpenTable "C101-Raw", acViewNormal, acEdit
DoCmd.GoToRecord acDataTable, "C101-Raw", acFirst
Do
BIOChg = Me.BIO
Call FullNameSplit(BIOChg)
' Set BIO value to value returned from the function call
BIO = BIOChg
DoCmd.RunCommand acCmdSaveRecord
DoCmd.RunCommand acCmdRecordsGoToNext
' This was the other cmd I have tried
' DoCmd.GoToRecord acTable, "C101-Raw", acNext
MsgBox "Next BIO Value= " & Me.BIO
MsgBox "Current ClarityID Value= " & Me.PrjID
Counter = Counter + 1
If Counter > 4 Then Exit Do
Loop
The go to next record is executed , but the value for Me.BIO and Me.PrjID still displays the value for the first record. How do I get the values to update if the next record has been executed?
DoCmd.OpenTable "C101-Raw", acViewNormal, acEdit
DoCmd.GoToRecord acDataTable, "C101-Raw", acFirst
Do
BIOChg = Me.BIO
Call FullNameSplit(BIOChg)
' Set BIO value to value returned from the function call
BIO = BIOChg
DoCmd.RunCommand acCmdSaveRecord
DoCmd.RunCommand acCmdRecordsGoToNext
' This was the other cmd I have tried
' DoCmd.GoToRecord acTable, "C101-Raw", acNext
MsgBox "Next BIO Value= " & Me.BIO
MsgBox "Current ClarityID Value= " & Me.PrjID
Counter = Counter + 1
If Counter > 4 Then Exit Do
Loop
The go to next record is executed , but the value for Me.BIO and Me.PrjID still displays the value for the first record. How do I get the values to update if the next record has been executed?