Simple code question

Steven811

Registered User.
Local time
Today, 18:08
Joined
Apr 18, 2004
Messages
133
I am creating a set of cmd buttons on a parent from for navigation around that and 4 nested subforms. When I move the focus 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

Any assistance would be appreciated.

Thanks
 
OnLostFocus

I've tried

Private Sub Form_LostFocus()
MyForm.Visible = True
End Sub

But it still doesn't work.

I'd be really grateful for some assistance

Steven811
 

Users who are viewing this thread

Back
Top Bottom