Search part of name field

CSCS

Registered User.
Local time
Today, 09:08
Joined
Jan 10, 2004
Messages
91
Hi Guys!

I'm working on this database in which I have 2 forms:

one form has personal information (PersonalInfo)
and the other one is a search form (Search)

In the search form I have a field in which I want to type any part of the Name field in PersonalInfo form and I want to retrieve all the records that have this part of the name.

Here is what I tried:

In the PersonalInfo form, I want to the criteria of the NameField and typed the following:

Like %[Forms]![Search]![SearchField]%

but it didn't work.

Any help will be very much appreciated.

Regards,
CS.
 
CS,

the wild card in MS Access is *
Look up the LIKE operator in Access Help.

RV
 
Dear RV,
Thanks for the hint. I found the solution!
 
Hi,
Could you send me please code for Search function.
I am trying to do same thing.

Thanks
 
Solution

The query expression should read as follows:

Like '*' & [Forms]![Search]![SearchField] & '*'

~Lisa
 

Users who are viewing this thread

Back
Top Bottom