Results 1 to 6 of 6
  1. #1
    quabba is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2013
    Posts
    3

    Date + 1 month


    Hi everyone. I've got a database that I need to extract some info from. I need to extract up to the current date + 1 month. I've tried various things but they only give me the current years results and not any in the past years ie 2012, 2011. can someone help.

  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
    Try a criteria of

    <= DateAdd("m", 1, Date())
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    quabba is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2013
    Posts
    3

    Post

    Quote Originally Posted by pbaldy View Post
    Try a criteria of

    <= DateAdd("m", 1, Date())
    Hi pbaldy, I've tried that with no luck, I've got this for the month <=Month(Date())+1 and this for the year <=Year(Date())

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Is your field a date/time field or are you storing month and year (I would have a date/time field)? Can you post the db here?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    quabba is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2013
    Posts
    3
    Quote Originally Posted by pbaldy View Post
    Is your field a date/time field or are you storing month and year (I would have a date/time field)? Can you post the db here?
    Hi pbaldy, that has worked. I just checked my query and I had another conflicting field set for the date. Don't know how I never seen it before. Thanks for your help..

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    No problem, and welcome to the site!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 3
    Last Post: 04-01-2012, 01:40 PM
  2. Convert Date Value to ONLY Name of Month
    By taimysho0 in forum Programming
    Replies: 2
    Last Post: 02-23-2012, 08:05 PM
  3. Check for the Month only in a Date
    By taimysho0 in forum Programming
    Replies: 4
    Last Post: 01-20-2012, 01:16 PM
  4. date to month
    By metokushika in forum Access
    Replies: 5
    Last Post: 11-29-2011, 09:37 AM
  5. Month/Month to date
    By Tony McGuire in forum Queries
    Replies: 9
    Last Post: 09-20-2011, 11: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