Results 1 to 3 of 3
  1. #1
    MDBURDEN1954 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2018
    Posts
    2

    Question using a field in a form or report to search for a specific record.

    I am creating an Access 2016 database to assist in the management of a large amount of Recipes.



    I have created a report that displays all recipes sorted by Food Category
    Basically the report gives the Food Category and recipe name followed by a button that will open the full Recipe like

    Category
    Recipe Name Display Recipe Button
    Recipe Name Display Recipe Button
    Recipe Name Display Recipe Button

    Category
    Recipe Name Display Recipe Button
    Recipe Name Display Recipe Button
    Recipe Name Display Recipe Button

    Category
    Recipe Name Display Recipe Button
    Recipe Name Display Recipe Button
    Recipe Name Display Recipe Button

    How can I program the Find Recipe Button to go to the Recipes Table, Find the recipe using the Recipe name on that line of the query, and display in a form?

    I have tired and can only get the first record of the Recipe Table to show?

  2. #2
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    First, you should drive the opening of the report from a form, displaying all (as you seem to be doing now) or just one (based on the contents of one form textbox or combo box) which is kind of what you're asking about - except for not doing it off of a report. While it's possible, would you drive home a nail with a shoe? At least, that's what it seems you're trying do do
    I have created a report
    yet you also say
    Find the recipe using the Recipe name on that line of the query
    so it's not clear.

    Start with a query that works and post back after clearing things up. If you want to be able to open the report or a form listing recipes that match more than one criteria (more than one recipe name) then you will need a listbox. Your query will need a LIKE operator if you want any recipe that may contain the keyword in its name (such as 'Blueberry Pie' AND 'Blueberry Cheesecake').
    Last edited by Micron; 07-02-2018 at 06:38 PM. Reason: fixed quotes
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    Trying to replicate what you are showing, I would create a form with a combobox and a listbox.
    The combobox would allow you to select a Category, then all the recipes in that category would appear in the listbox.
    Double Clicking on a listbox recipe would open a form showing that recipe details.

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

Similar Threads

  1. Replies: 3
    Last Post: 11-28-2016, 03:17 PM
  2. Replies: 2
    Last Post: 04-24-2016, 03:10 PM
  3. Open Form To Specific Record From A Report?
    By shoelesscraig in forum Reports
    Replies: 6
    Last Post: 12-11-2015, 08:38 PM
  4. Replies: 2
    Last Post: 01-14-2015, 12:00 PM
  5. Replies: 3
    Last Post: 01-14-2010, 08:32 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