Replace the code in MY database with this one:
then adapt for you.
Code:
Private Sub Label_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) If Not (ActiveControl.Name = "Subform") Then Beep Subform.SetFocus Txt = "The Subform HAS focus. Click the command button." End If End Sub
Comment