D
DS
I have a 2 Page Form with 2 Buttons in the Footer. When I go to the
second page I want the frst button to hide and the second button to
appear. When I go to the first page I want the reverse to happen but I
keep getting this message. How do I fix this?
Can't Hide a Control That Has Focus.
Private Sub Command46_Click()
DoCmd.GoToPage "2"
Me.Command52.Visible = True
Me.Command46.Visible = False
End Sub
Private Sub Command47_Click()
DoCmd.GoToPage "1"
Me.Command52.Visible = False
Me.Command46.Visible = True
End Sub
Thanks
DS
second page I want the frst button to hide and the second button to
appear. When I go to the first page I want the reverse to happen but I
keep getting this message. How do I fix this?
Can't Hide a Control That Has Focus.
Private Sub Command46_Click()
DoCmd.GoToPage "2"
Me.Command52.Visible = True
Me.Command46.Visible = False
End Sub
Private Sub Command47_Click()
DoCmd.GoToPage "1"
Me.Command52.Visible = False
Me.Command46.Visible = True
End Sub
Thanks
DS