Results 1 to 4 of 4
  1. #1
    Stewwy is offline Novice
    Windows Vista Access 2007
    Join Date
    Jan 2016
    Posts
    2

    Query Help Needed to sort based on months


    I am building an employee tracking database for pilots. In the end of their birth year they have annual evaluation criteria that must be met within a 3 month period, example: January birth month must complete evaluatable criteria between November and January. I have all of the evaluations and birth months built into my data table, and can not figure out how to build a query to display only personnel whose birth month is the current month and the preceding two to fill a report form where i can track completion of evaluations for all persons in their annual window. I'm sure there's a simple answer, but i'm fairly new to access and learning as i go based on my needs - thank you in advance for your assistance!

  2. #2
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,842
    presumable your problem is if current month is Jan - how to pick up Nov and Dec?

  3. #3
    Stewwy is offline Novice
    Windows Vista Access 2007
    Join Date
    Jan 2016
    Posts
    2
    that would be the next step, i can't figure out how to write the base query currently. much less how to have it wrap around the end of the year

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Use this query...
    Select person, birth, month(dateadd("m"-2,birth)), month(birth) from table

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

Similar Threads

  1. Replies: 1
    Last Post: 11-23-2014, 02:20 PM
  2. Replies: 3
    Last Post: 02-23-2014, 02:06 PM
  3. Replies: 12
    Last Post: 08-19-2011, 09:20 AM
  4. Replies: 0
    Last Post: 03-25-2011, 02:37 PM
  5. Report Based on Form - Sort
    By jeffyyy in forum Reports
    Replies: 1
    Last Post: 10-16-2010, 06:15 PM

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