Results 1 to 3 of 3
  1. #1
    mejia.j88 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Location
    california
    Posts
    228

    query to display last four entries

    Hi all,



    i have a table that saves the following information:

    Furnace Asset Number, heating zone 1, heating zone 2, etc etc, heating zone 10.

    i have created a form in which the user selects the furnace asset number from a cbo box, and populates 10 text boxes with its respective heating zone temps.

    we only have 4 furnaces which are saved onto this table; and only need to display the last record for each furnace.

    in other words: i want my cbo box to display the asset numbers drawn from the table via query, BUT only want it to draw the last record for each four asset numbers. the cbo should display 4 choices, asset 1, 2, 3, 4, and when selected, the text boxes should be filled in with the most current temps for the asset number chosen.

    how do i set up such a query?

    i have this set up, but no filters:

    Code:
    SELECT tbl_pre_post.Asset_No, tbl_pre_post.Date_Time, tbl_pre_post.Zone_0, tbl_pre_post.Zone_1, tbl_pre_post.Zone_2, tbl_pre_post.Zone_3, tbl_pre_post.Zone_4, tbl_pre_post.Zone_5, tbl_pre_post.Zone_6, tbl_pre_post.Zone_7, tbl_pre_post.Zone_8, tbl_pre_post.Zone_9FROM tbl_pre_post;
    
    
    thanks guys/gals

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    mejia.j88 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Location
    california
    Posts
    228
    i'll check it out and get back to you if things work/dont work.

    thanks pbaldy1

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

Similar Threads

  1. Query not showing all entries
    By HeadGasket in forum Queries
    Replies: 5
    Last Post: 02-09-2012, 05:21 PM
  2. Union Query and multiple entries
    By krutoigoga in forum Queries
    Replies: 1
    Last Post: 07-08-2011, 07:17 AM
  3. Query to display ONLY entries from today
    By Juan4412 in forum Queries
    Replies: 9
    Last Post: 01-15-2011, 05:34 PM
  4. Query to show blank entries
    By jo15765 in forum Queries
    Replies: 1
    Last Post: 12-09-2010, 08:15 AM
  5. Replies: 5
    Last Post: 01-28-2010, 09:10 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