Results 1 to 4 of 4
  1. #1
    fishhead is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2015
    Posts
    167

    date function

    I want to create an "if" stmt in a macro that will look at a text field and determine if the month is within the current month but i'm not certain how to do this.

    here's what i have so far:

    if Forms![General Quote]![date] = .......



    What i want to do is create an if statement that will look in that filed and determine if this invoice was printed in the current month or not.

    (i know how to determine if the invoice was printed withing the last X days from now() but i don't know how to do this for the current month

    thanks in advance.

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    One way

    If Month(Forms![General Quote]![date]) = Month(Date()) and Year(Forms![General Quote]![date]) = Year(Date())
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    fishhead is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2015
    Posts
    167
    works perfectly, thanks Paul

  4. #4
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Happy to help!
    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: 6
    Last Post: 04-03-2019, 02:44 AM
  2. Replies: 2
    Last Post: 06-25-2014, 11:00 AM
  3. Replies: 7
    Last Post: 02-25-2014, 03:11 PM
  4. date function
    By geraldk in forum Forms
    Replies: 13
    Last Post: 12-28-2011, 12:36 PM
  5. Date Function
    By tmcrouse in forum Queries
    Replies: 2
    Last Post: 12-02-2010, 08:53 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