like comparison

J

Jenny

Is their a method to replicate the like comparison used in
a table by selecting the match any part of field option?
In findfirst . Replacing the equals with like?

rcdAmendPC.FindFirst "company Like '" & Sname & "'"
 
D

Douglas J. Steele

rcdAmendPC.FindFirst "company Like '*" & Sname & "*'"

In some cases (such as when you're using ADO), you'll need to use % as the
wildcard instead of *
 
J

Jenny

Thanks
Jenny
-----Original Message-----
rcdAmendPC.FindFirst "company Like '*" & Sname & "*'"

In some cases (such as when you're using ADO), you'll need to use % as the
wildcard instead of *

--
Doug Steele, Microsoft Access MVP

(No private e-mails, please)





.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top