Results 1 to 3 of 3
  1. #1
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496

    Between dates or even date year

    I'm trying to code in between dates in VBA



    I would prefer that anything with Year 2013

    Year() maybe?

    in the date field with an IF changes another field to a different value based on that year.

    I'm not sure how to ask it just to look for the year rather than putting dates between...

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    You want a WHERE clause in a query?

    WHERE Year([fieldname])= [input year]
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    No, but it's all good I figured out a different way to do the same thing.

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

Similar Threads

  1. New fiscal year dates
    By edieb in forum Programming
    Replies: 2
    Last Post: 05-13-2014, 08:42 AM
  2. Dsum data between to dates for this year and last year
    By sdel_nevo in forum Programming
    Replies: 1
    Last Post: 06-13-2013, 06:48 AM
  3. Replies: 2
    Last Post: 02-11-2013, 12:05 PM
  4. Replies: 4
    Last Post: 01-09-2013, 11:16 AM
  5. Replies: 4
    Last Post: 01-10-2012, 06:26 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