Results 1 to 5 of 5
  1. #1
    taimysho0 is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Nov 2011
    Posts
    286

    Check for the Month only in a Date

    Hi




    table 1 has a column with request dates

    table 2 has a column with due dates

    a request date must be before the due date

    im writing a query for the two tables, but how do i just check the month?

    ex: if request date's month = 01/11/2012 in table 1, i want it to scroll through all the dates in table 2 where it finds a due date also in january. (there will not be multiple due dates in the same month)


    can someone help with putting this in the Design View of the query screen

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    A suggestion:

    What exactly is your application? If you met a stranger and had to describe your database/application too him/her, what would you say in 5 lines or less?

    Have you designed this application- laid out the entities and attributes, created tables etc?
    The reason I ask is because you don't mention any of these things in your post. You refer to table 1 and table 2, and column with request dates...

    It would help us help you, if you could provide a little more context. Even tell us what you have tried, what results you got ....

    if request date's month = 01/11/2012 in table 1,
    You may want to research the Month() function.

  3. #3
    taimysho0 is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Nov 2011
    Posts
    286
    i see, was just trying to simplify the question

    my app is designed for a user to request files from a third party

    third party investigates site and reports back with information on the site.

    user must get file in before a due date that is designated by a cycle day

    my app also looks at the current date and the due date and does some math to figure out how many days the file is late (passed the due date).

    the part i need help with is assigning the correct due date to the proper request date for that particular read cycle, data should all be in the same row


    ex:
    -->fields cycle request date due date
    A 1/20/2012 1/23/2012<--this due date is grabbed from another table
    A 2/19/2012 2/28/2012 <--query needs to know which due date to grab for same cycle
    B 1/20/2012 1/8/2012 <---due date is different for each cycle even if in same month
    does this make sense?

    btw, i tried the Month() function in the query design view and it does not take it..Date() works but not Month()

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726

  5. #5
    taimysho0 is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Nov 2011
    Posts
    286
    it looks like the month function works only if you choose a particular month, but how would i make it on going by itself? for ex: Date() always refers to the current day, and month

    how would i refer to today's current month only? without changing the date value in Month (date value)?? thanks

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

Similar Threads

  1. Update the date in present month
    By krkow in forum Queries
    Replies: 5
    Last Post: 12-08-2011, 02:17 PM
  2. date to month
    By metokushika in forum Access
    Replies: 5
    Last Post: 11-29-2011, 09:37 AM
  3. Month/Month to date
    By Tony McGuire in forum Queries
    Replies: 9
    Last Post: 09-20-2011, 11:54 AM
  4. Current Month and Year-To-Date
    By DSnipeFunk in forum Access
    Replies: 4
    Last Post: 05-31-2011, 11:38 AM
  5. Month To Date Query
    By jmorse in forum Queries
    Replies: 3
    Last Post: 03-11-2011, 11:25 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