جرب هذا ......
If Mid(Me.text1, 1, 1) = 7 And InStr(Me.text2, 7) > 0 Then
MsgBox "الرقم الأول"
ElseIf Mid(Me.text1, 2, 1) = 7 And InStr(Me.text2, 7) > 0 Then
MsgBox "الرقم الثاني"
ElseIf Mid(Me.text1, 3, 1) = 7 And InStr(Me.text2, 7) > 0 Then
MsgBox "الرقم الثالث"
End If