Results 1 to 3 of 3
  1. #1
    nika.duncan is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Nov 2013
    Posts
    36

    Query used to generate weekly menu report not displaying name nut unique identifier

    Good morning,



    I have a problem with a lunch menu sytem I am trying to create. The query that I have created to display the menu for Monday called "Monday" is not displaying the Protein name the day of the week name either. It seems to be using the unique identifier, even though I think I selected the field to be displayed. Please have a look at the query and the report generated "Monday" and see how you can assist please.

    Please see database attached for any help.

    Nika
    Attached Files Attached Files

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    if you look at the macro in MONDAY button,
    it wants to open the report MONDAYS ORDER.
    there IS NO report called mondays order, there IS a report called MONDAY.

    you can only select items in the box, so change REPORT NAME: to MONDAY.

  3. #3
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,412
    You need to add Menu_Choices table to the query. Then all the food columns need to be pulled from that table, not Staff_Detail. Running that query will show nothing because Staff_Detail.MenuID is blank in all the records. Enter a number here corresponding with a menu, and the query will show as desired.
    You will need to populate the MenuID field in Staff_Detail, somehow, but maybe that's another thread to come...

    As for the report, if you do the above, the food comboboxes can be changed to textboxes (right click, change to) and their data sources changed to carb_det, Veg_det, etc.
    You may have to adjust the sort/group to correspond with the new field names.

    Edit: Ranman is correct. The macro calls for a non-existent report. I ran the query and report directly from the Navigation Pane, not the form so I didn't run into the invalid report name. In any case, you still need the changes to the query and report for the report to run properly.
    Last edited by davegri; 02-21-2018 at 09:13 AM. Reason: add report suggestion

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

Similar Threads

  1. Replies: 4
    Last Post: 03-08-2017, 08:56 AM
  2. Custom Unique Identifier
    By sstrode in forum Forms
    Replies: 2
    Last Post: 09-17-2014, 05:10 PM
  3. Replies: 5
    Last Post: 08-02-2012, 08:49 AM
  4. Using Social# as unique identifier
    By NEHicks in forum Database Design
    Replies: 3
    Last Post: 05-27-2011, 09:14 AM
  5. generate next possible identifier
    By BayerMeister in forum Programming
    Replies: 5
    Last Post: 08-25-2010, 08:30 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