I am creating a set of cmd buttons on a parent form for navigation around that and the 4 nested sub forms. When I move the focus to one of the sub forms and use the button the parent form becomes invisible.
How do I change this so that it remains visible at all times?
Here is the code for one of the buttons
Private Sub cmdPrevious_Click()
On Error GoTo cmdPrevious_Click_Err
Screen.PreviousControl.SetFocus
DoCmd.GoToRecord , "", acPrevious
cmdPrevious_Click_Exit:
Exit Sub
cmdPrevious_Click_Err:
MsgBox Error$
Resume cmdPrevious_Click_Exit
End Sub
I've tried
Private Sub Form_LostFocus()
MyForm.Visible = True
End Sub
But it still doesn't work.
Any assistance would be appreciated.
Thanks
How do I change this so that it remains visible at all times?
Here is the code for one of the buttons
Private Sub cmdPrevious_Click()
On Error GoTo cmdPrevious_Click_Err
Screen.PreviousControl.SetFocus
DoCmd.GoToRecord , "", acPrevious
cmdPrevious_Click_Exit:
Exit Sub
cmdPrevious_Click_Err:
MsgBox Error$
Resume cmdPrevious_Click_Exit
End Sub
I've tried
Private Sub Form_LostFocus()
MyForm.Visible = True
End Sub
But it still doesn't work.
Any assistance would be appreciated.
Thanks