pbuethe
Returning User
- Local time
- Today, 14:59
- Joined
- Apr 9, 2002
- Messages
- 210
I have the following code:
Private Sub pgARVTherapy_Click()
Forms![frmPartA]![sfrmARVTherapy].SetFocus
DoCmd.GoToControl "DrugCode"
DoCmd.GoToRecord , "", acNewRec
End Sub
When I click on the tab (pgARVTherapy), I want to go to a new record in the subform on that tab page, with the cursor on the field DrugCode. The subform is a continuous form. The cursor is on the first record instead.
Thanks for your help.
Private Sub pgARVTherapy_Click()
Forms![frmPartA]![sfrmARVTherapy].SetFocus
DoCmd.GoToControl "DrugCode"
DoCmd.GoToRecord , "", acNewRec
End Sub
When I click on the tab (pgARVTherapy), I want to go to a new record in the subform on that tab page, with the cursor on the field DrugCode. The subform is a continuous form. The cursor is on the first record instead.
Thanks for your help.