Hi all,
Can anybody help me!
I have a main form called "network data form_2" with 2 subforms called, "Material subform" & "Pipe diameter subform".
What i whant to do is for a control called "network info source" (which is on the main form) to get the focus when a
field in "material subform" is Null.
This is what i have got at the moment and i keep getting errors.
Private Sub Pipe_Material_LostFocus()
If IsNull(Me.[pipe material description]) Then
'Me.Detail.[network info source].SetFocus
Form.[Network data form_2].[network info source].SetFocus
End If
Me.Parent.[Pipe diameter Subform].SetFocus
End Sub
Thanks bry.
Can anybody help me!
I have a main form called "network data form_2" with 2 subforms called, "Material subform" & "Pipe diameter subform".
What i whant to do is for a control called "network info source" (which is on the main form) to get the focus when a
field in "material subform" is Null.
This is what i have got at the moment and i keep getting errors.
Private Sub Pipe_Material_LostFocus()
If IsNull(Me.[pipe material description]) Then
'Me.Detail.[network info source].SetFocus
Form.[Network data form_2].[network info source].SetFocus
End If
Me.Parent.[Pipe diameter Subform].SetFocus
End Sub
Thanks bry.