Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2014
    Posts
    2

    How can I use a text value from an open Form in a criteria expression in a new query?

    I thought this would be simple, but not if you want to use a 'Like' expression to filter for a specific Keyword (from a Combo Box in an open Form) in my [Keywords] field of my new Query (unrelated tables). (I'm a relative novice - not very familiar with code - I usually use the Query Design window). I'm stumped. Any help would be appreciated

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Not much info there.

    Maybe this is what you are trying to do: http://www.datapigtechnologies.com/f...tomfilter.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Join Date
    Jun 2014
    Posts
    2
    Thank you! The video link was very useful (I learned a few things!) It gave me the clues I needed to come up with the expression: Like ("*" & [Forms]![ReportControler]![Text14] & "*") - which solved my problem. Thanks again!

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

Similar Threads

  1. Replies: 2
    Last Post: 12-21-2013, 11:37 AM
  2. Replies: 4
    Last Post: 05-17-2013, 04:00 PM
  3. Replies: 0
    Last Post: 09-29-2011, 11:52 AM
  4. To open a form, sub form if text box entry exist in Query
    By george.vniekerk in forum Programming
    Replies: 2
    Last Post: 08-08-2011, 12:50 AM
  5. Replies: 1
    Last Post: 03-23-2010, 04:01 PM

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