Setting focus to previuos control that had focus
I am trying to give focus back to a control that had the focus after updating data on other controls in a sub. Since I have to Setfocus to the textbox that I need to update I would like to give the focus back to the control that the user originally moved to. This is on the AfterUpdate event. I have tried using the Me.ActiveControl and Screen.ActiveControl properties but they give me errors can some please help me out with this. I would really appreciate it. Thanks in advance.
I am trying to give focus back to a control that had the focus after updating data on other controls in a sub. Since I have to Setfocus to the textbox that I need to update I would like to give the focus back to the control that the user originally moved to. This is on the AfterUpdate event. I have tried using the Me.ActiveControl and Screen.ActiveControl properties but they give me errors can some please help me out with this. I would really appreciate it. Thanks in advance.