Results 1 to 3 of 3

Thread: Search part of name field

  1. #1
    Join Date
    Jul 2005
    Posts
    7

    Search part of name field

    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.

  2. #2
    Join Date
    Feb 2003
    Posts
    1,048
    Try: Like '*' + [Forms]![Search]![SearchField] + '*'

    I assume that you're using Access, right?

  3. #3
    Join Date
    Jul 2005
    Posts
    7
    It worked!

    Thanks alot Rawhide!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •