(Access 2007)
I have a form with some controls in the header. By default the form detail is hidden. I have the following code on a button
Private Sub newclient_Click()
Me.Detail.Visible = True
DoCmd.GoToRecord , , acNewRec
Me.surname.SetFocus
End SubThe problem is that the focus isn't moving...