Results 1 to 2 of 2
  1. #1
    winteram is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    12

    Setting Criteria with a Lookup Field

    I have a database and several queries. I have a form where the user types in the description of an item they are looking for. However, they will only be entering part of a description. Based on what they enter, I want the query I have to pop up with all items in the table that have what the user typed as part of its description.

    I have already tried typing Like *[Forms]![FindByDescription]![txtSearch]!* into the criteria of my description field on the query, where "FindByDescription" is the form that the user types into and "txtSearch" is the search box they type into. It isn't working.

    Any help would be much appreciated!!

  2. #2
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,044
    Hi,

    Like "*" & [Forms]![FindByDescription]![txtSearch] & "*"

    greetings
    NG

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Setting Up a Field Copy Function Key
    By Markgc in forum Access
    Replies: 8
    Last Post: 03-08-2011, 09:33 PM
  2. Use a lookup field to influence values in another field
    By nathanrt in forum Database Design
    Replies: 3
    Last Post: 01-13-2011, 03:40 PM
  3. Setting a field in order for Report
    By cotri in forum Reports
    Replies: 2
    Last Post: 01-28-2010, 02:44 PM
  4. Setting a field to be dependent on another
    By CushingMT in forum Forms
    Replies: 0
    Last Post: 11-19-2008, 11:51 AM
  5. Setting criteria in a calculated date field
    By SteveReberger in forum Access
    Replies: 0
    Last Post: 10-29-2008, 06:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums