G
Guest
I use the following code to permit users to search for records by last name
on a form.
stLinkCriteria = "[Last_Name] Like " & "'" & Me![txtNameLast] & "*'"
I would like to add additional criteria to the above so they could search by
last and first name combined. I tried the following but it generates a type
mismatch error
stLinkCriteria = "[Last_Name] Like " & "'" & Me![txtNameLast] & "*'" And
"[First_Name] Like " & "'" & Me![txtNameFirst] & "*'"
Any help appreciated in telling me what I am doing wrong. Thanks.
on a form.
stLinkCriteria = "[Last_Name] Like " & "'" & Me![txtNameLast] & "*'"
I would like to add additional criteria to the above so they could search by
last and first name combined. I tried the following but it generates a type
mismatch error
stLinkCriteria = "[Last_Name] Like " & "'" & Me![txtNameLast] & "*'" And
"[First_Name] Like " & "'" & Me![txtNameFirst] & "*'"
Any help appreciated in telling me what I am doing wrong. Thanks.