Results 1 to 2 of 2
  1. #1
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476

    Hoow to Obtain Last Date Worded Proceeding Current Date

    I have a Form & a Sub Form within.
    Main Form flds: “EmplyDate’, ‘EmloyeeID’, ‘Emplhrs’
    Sub Form: ‘EmplloyeeID’, ‘Co’ (County), ‘City’, ‘LastDateWorked”

    The ‘LastDateWorked' in the query is Min



    The 2-Forms are linked by, EmployeeID. What I want is, on any particular day say 1/22/2014 if Employees, Joe, Frank, & Donna are working then in a Sub Form I want to see what Co & City the reside. But I also want to see the last previous date they worked from the current date. I don’t know what (if any) I can write to have these results? Allow me to provide some examples of what I’m shooting for:

    Main Form:

    • EmplDate: 1/22/1014
    • EmployeeID: JoePMrphy
    • EmplHrs: 4.5


    Sub Form

    • EmployeeID
    • Co
    • City
    • LastDateWorked *How can I populate the last previous date they worked from the current date?

    Any suggestions would be greatly appreciated!

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Maybe have add a subform to your main form and flatten it out with its control's Locked. This could provide you with the ability to view the summary you need. Use "SELECT TOP 2" in your subform's recordsource. So, in the subform's SELECT query add "TOP 2" directly after SELECT.

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

Similar Threads

  1. Replies: 6
    Last Post: 12-11-2012, 09:40 PM
  2. Replies: 25
    Last Post: 11-16-2012, 12:47 PM
  3. Replies: 3
    Last Post: 10-25-2012, 10:04 PM
  4. Replies: 1
    Last Post: 12-07-2011, 01:02 PM
  5. Replies: 9
    Last Post: 03-19-2010, 10:37 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