Hi again, I am trying to find a record using a phone number. The parents table has field for the phone number which is a short text. The form I use has an unbound
text box for the input of the phone number. I then use the subroutine below to find out if a record exists with that phone number. But I get a daily type mismatch when I execute the .FindFirst I have researched access documentation and thought I was doing everything right but apparently I'm not. Can somebody please point out what I am doing wrong. Thank you in advance!
PhoneExist = "[Phone]= " & Me![Phone]
If IsNull(Me![Phone]) Then
message = "Please enter a phone #!"
Else
With rstParents
.MoveFirst
.FindFirst [PhoneExist]
If Not .NoMatch Then
Me![Mother's Name] = ![Mother's Name]
Me![Mother's Name] = ![Father's Name]
rstStudents!ParentID = rstParents![ID]
Me.Refresh
End If
End With
End If