Results 1 to 4 of 4
  1. #1
    Jlacey91 is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Dec 2015
    Posts
    5

    Selecting Value in Subform Text Box in Qry

    I'm struggling to set my criteria correctly in my query to look up the value entered in a text box on a subform.

    My Main Form is called "NavigationFormMaster", Subform: "DepositCheck1", Text Box: "DriverNo"

    My criteria is:



    Like "*" & [Forms]![NavigationFormMaster]!DepositCheck1].[DriverNo] & "*"

    Where have I gone wrong?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    What happens - error message, wrong results, nothing?

    There is a missing [ in front of DepositCheck1.

    Review
    https://www.accessforums.net/forms/t...orm-32053.html
    https://www.accessforums.net/forms/f...77/index2.html

    I don't use dynamic parameterized query. I prefer http://www.allenbrowne.com/ser-62.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
    Jlacey91 is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Dec 2015
    Posts
    5
    Sorry, the "[" is on the query, miss-typed.

    It brings up an "Enter Parameter Value" box that I have to fill in twice to get the result I was looking for.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    You have two threads running on this same topic. Pick one and stick with it. You are getting basically same information in both. I should either merge them or delete one.
    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.

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

Similar Threads

  1. Selecting subform data with a combobox
    By neash83 in forum Access
    Replies: 1
    Last Post: 02-27-2015, 11:11 AM
  2. Replies: 3
    Last Post: 04-20-2014, 08:13 PM
  3. Selecting record in subform
    By survivo01 in forum Forms
    Replies: 8
    Last Post: 10-29-2012, 08:30 AM
  4. Selecting Only Numerals from Text Box
    By shenix2005 in forum Forms
    Replies: 1
    Last Post: 01-05-2011, 09:06 AM
  5. Selecting text - ComboBox
    By Numbat in forum Programming
    Replies: 2
    Last Post: 06-05-2006, 05:42 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