Im having a little trouble referring to a control on a parent form as you can see from the code below, in particular the setfocus line
clearly my reference is wrong, can someone correct for me
cheers
Code:
Private Sub cboPrim_Reason_AfterUpdate()
If Me.cboPrim_Reason = "Mental Health - Other" Then
MsgBox "If you select Mental Health - Other then you must add the reason to the Notes field!", vbOKOnly, "Warning!"
Me.Parent.txtNotes.SetFocus
End If
End Sub
clearly my reference is wrong, can someone correct for me
cheers