Tom,
Nice clarification. Now I understand a lot better what you are trying to accomplish. With regards to the first post I made and in general, what tripped you up was that you were not putting the update code in the right spot.
You want to put your update code for the new record in the On Current code for the form. Your own solution was setting up correctly, but the before insert code was for the record you had just processed and then there was no after update after the first record. Changing a control's value programatically does not fire the control's after update code (sigh - I wish it was at least an optional thing).
You want to use the on current event because that will get you the next record in the recordset. So for either of my solutions and your original one, put the update code for the next record in the form's On Current event code.
Based on what you are doing, the module level variable is probably cleaner and involves less code. Sorry I didn't think of that first. The tag code will work just fine also.
A quick recap:
A. Setup your data in the AfterUpdate code for the controls holding the name and date
(eg Me![cboAnalyst].Tag = Me![cboAnalyst]
B. Modify the remaining records by modifying them in the form's On Current event code
(eg Me![cboAnalyst] = Me![cboAnalyst].Tag
If you are a little bit unsure of the order of events for a form, create a simple form and then put a message box in all or several of the form events (eg msgbox "Form_Load", msgbox "Form_Current", etc) and run the form and see what happens.
Several things you can do in VBA code will trigger an On Current event for the form, so don't be surprized in debugging to see Form_Current called more than once sometimes. A couple things that will trigger that are changing the OrderBy (but not changing OrderByOn), changing the form's record source, changing the primary key of the record source, etc. As you go along, I'm sure you will encounter others.
Good Luck! You ask good questions!
Please remember to give helpful posts the stars they deserve! This makes the post more visible to others in need!
![[thumbsup] [thumbsup] [thumbsup]](/data/assets/smilies/thumbsup.gif)