Results 1 to 2 of 2
  1. #1
    c.stewart28 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Apr 2015
    Posts
    7

    Query to look up value based on form field

    I want to build a query that passes the value in the form to the query and check is the value is eq to yes. I have a field on a form called type and it can contain a variety of products, computer, server, camera, etc. I also have another table questions that has all those products with a yes/no to indicate if that question is appropriate to the type of product. I need to somehow do something like: pass the value on the form.type value [computer, server, camera] to the questions table where the criteria is equal to yes.

    This action would need to occur on a page load event.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    select * from table where [type] = forms!frmFind!cboType

    There is a button called the BUILDER. It will let you click thru objects and select the one you need. It prevents misspellings.
    put the cursor in the criteria box and click builder.

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

Similar Threads

  1. Replies: 3
    Last Post: 11-26-2014, 06:05 PM
  2. Replies: 7
    Last Post: 07-11-2013, 10:45 AM
  3. Replies: 1
    Last Post: 08-04-2011, 04:17 PM
  4. Replies: 4
    Last Post: 07-28-2010, 10:27 AM
  5. Replies: 1
    Last Post: 11-10-2009, 03:20 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