I'm having trouble firing the requery command and returning to the current record instead of reverting back to record 1. I picked this up from someone else:
I have this in the after update event of a field. However, it's reverting to the previous record, not the current record. I've attached the DB. Thanks in advance.
Code:
Dim Curr_Rec
Curr_Rec = Me.CurrentRecord
DoCmd.Echo False
Me.Requery
DoCmd.GoToRecord , , acGoTo, Curr_Rec
DoCmd.Echo True
Me.FirstName.SetFocus
I have this in the after update event of a field. However, it's reverting to the previous record, not the current record. I've attached the DB. Thanks in advance.