Results 1 to 3 of 3
  1. #1
    roarcrm is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2014
    Posts
    27

    Searching by Month

    Hi all,



    I'm looking to search by month in one of my queries. The user will select a date on a form and I want all values in that month to be returned, i.e if they select 14/02/2014 I want all records from February 2014 to display.

    Obviously if I set the search criteria as [Forms]![Hours Search]![DateSearch] then it will just search for the exact date.

    Thanks.

  2. #2
    lfpm062010 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Location
    US
    Posts
    415
    There are few way to do what you need.
    This is probably the simplest.

    FORMAT([Forms]![Hours Search]![DateSearch], "MM/YYYY")

    http://www.techonthenet.com/access/f...ate/format.php

  3. #3
    roarcrm is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2014
    Posts
    27
    Looks to work perfectly, many thanks.

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

Similar Threads

  1. Replies: 43
    Last Post: 08-06-2014, 08:21 PM
  2. Replies: 5
    Last Post: 06-17-2014, 12:11 AM
  3. Replies: 6
    Last Post: 05-05-2014, 10:51 PM
  4. Replies: 4
    Last Post: 05-26-2013, 03:28 PM
  5. Track capacity changes month by month
    By Nils in forum Database Design
    Replies: 1
    Last Post: 02-18-2011, 03:03 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