L
Lloyd
I am trying to search a subform on another tab when a user exits a field to
check for a condition. I'm having trouble with the proper way to refer to
the form and field? I am trying to search the PersonType filed on the
subform subfrmPersonsUpdate. The below code is giving me an error saying it
can not find the form subformPersonUpdate.....I have tried a variety of ways
to refer to the form, but none of them seem to work. Can anyone tell me what
I am doing wrong with refering to the subform/field?
thanks
With Me.RecordsetClone
Select Case Me.CaseType
Case "Murder"
Forms![subfrmPersonsUpdate]!DoCmd.FindNext
"PersonType='Suspect'"
If Not IsNull(PersonType) Then Exit Sub
If .NoMatch Then
do something
End If
End Select
End With
check for a condition. I'm having trouble with the proper way to refer to
the form and field? I am trying to search the PersonType filed on the
subform subfrmPersonsUpdate. The below code is giving me an error saying it
can not find the form subformPersonUpdate.....I have tried a variety of ways
to refer to the form, but none of them seem to work. Can anyone tell me what
I am doing wrong with refering to the subform/field?
thanks
With Me.RecordsetClone
Select Case Me.CaseType
Case "Murder"
Forms![subfrmPersonsUpdate]!DoCmd.FindNext
"PersonType='Suspect'"
If Not IsNull(PersonType) Then Exit Sub
If .NoMatch Then
do something
End If
End Select
End With