Results 1 to 2 of 2
  1. #1
    hpHHI is offline Novice
    Windows XP Access 2013
    Join Date
    May 2013
    Posts
    1

    Find specific record in subreport

    Hello,



    Perhaps I'm attacking this problem the wrong way, but here's what I'm looking at:

    Our Database tracks different measurement data for students. I've got a report that I want to use to track students progress. Each type of measurement is listed under a different table, which I used subforms for in the entry form (with each record of the main form pertaining to one student) and am now using subreports for in the output report.

    The problem I'm having is I want to find the data from the earliest measurements to use in the subreport footer. Each measurement has a date attached to it. I can grab the minimum of the date field, but I can't figure out how to get the related measurement to appear in a separate text box. I've tried using DLookup to get to the original record in the table, but either I can't get the syntax right, or it won't work the way I want it to.

    Please assist, or let me know if I've completely got the wrong idea.

    Thanks.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Maybe like:

    SELECT * FROM tablename WHERE [datefield]=DMin("[datefield]","tablename","StudentID=" & [StudentID);
    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. Trying to find a specific Record using VBA
    By FormerJarHead in forum Programming
    Replies: 26
    Last Post: 11-12-2012, 07:11 PM
  2. Hide Subreport if specific fields are empty
    By hawkins in forum Reports
    Replies: 1
    Last Post: 03-29-2012, 05:08 PM
  3. Subreport will not show specific data
    By mitchy1111 in forum Reports
    Replies: 1
    Last Post: 05-18-2011, 07:36 AM
  4. Find specific value in any field
    By bkvisler in forum Queries
    Replies: 8
    Last Post: 12-08-2010, 04:23 PM
  5. find specific data
    By hoachen in forum Queries
    Replies: 3
    Last Post: 08-19-2009, 08:54 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