Hello,
I am trying to go to a new record in a subform after update of a control on the main form. I had this in the OnEnter event of the subform:
DoCmd.GoToRecord , , acNewRec
DoCmd.GoToControl "basketno"
I tried putting this AfterUpdate of the control on the main form, adding the subform name:
DoCmd.GoToRecord ,Me.Child66 , acNewRec
DoCmd.GoToControl "basketno"
Neither works. basketno is the control I want to setfocus to once it has gone to the new record. Can someone help with a kick in the right direction?
Many Many Thanks
Jeremy
I am trying to go to a new record in a subform after update of a control on the main form. I had this in the OnEnter event of the subform:
DoCmd.GoToRecord , , acNewRec
DoCmd.GoToControl "basketno"
I tried putting this AfterUpdate of the control on the main form, adding the subform name:
DoCmd.GoToRecord ,Me.Child66 , acNewRec
DoCmd.GoToControl "basketno"
Neither works. basketno is the control I want to setfocus to once it has gone to the new record. Can someone help with a kick in the right direction?
Many Many Thanks
Jeremy