G
Guest
I have a form (frmOcccurance) that has several subforms. I am trying to move
the focus from the field 'Contact' of the subform (sfmContacts) to the field
'CorrIndv' of the subform (sfmCorrections) when there is nothing typed into
the field 'Contact'.
The code I am using is below:
Private Sub Contact_LostFocus()
If Me.Contact.Text = "" Then
Forms!frmOccurance!sfmCorrections.Form!CorrIndv.SetFocus
End If
End Sub
I do not get an error, but the focus just moves to the second field on
sfmContacts. I am assuming hat I am not referencing the subform correctly,
but I am not sure how else to do it. I found the reference used above in the
Access help. Any help would be appreciated.
Steve
the focus from the field 'Contact' of the subform (sfmContacts) to the field
'CorrIndv' of the subform (sfmCorrections) when there is nothing typed into
the field 'Contact'.
The code I am using is below:
Private Sub Contact_LostFocus()
If Me.Contact.Text = "" Then
Forms!frmOccurance!sfmCorrections.Form!CorrIndv.SetFocus
End If
End Sub
I do not get an error, but the focus just moves to the second field on
sfmContacts. I am assuming hat I am not referencing the subform correctly,
but I am not sure how else to do it. I found the reference used above in the
Access help. Any help would be appreciated.
Steve