Results 1 to 4 of 4
  1. #1
    adsm is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    5

    Filter by date

    Hi anyone,

    How could I filter the data sheet in the customers list from the attached database when the user writes the beginning date in the first text box and the end date in the second text box.

    Any help on this would be kindly appreciated.

    Thanks in advance.



    Best Regards
    adsm

  2. #2
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    In the query in he criteria of the the date Field use this expression:

    Between [Forms]![FormName]![Name of the Begining Date TextBox] And [Forms]![FormName]![Name of the Ending Date TextBox]

    Note: Make sure that the TextBox(s) Data Format is Set to Date format of the Date field in the query

  3. #3
    adsm is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    5
    Thanks for the help maximus. I do really appreciate your help.

  4. #4
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    Please mark this thread solved

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

Similar Threads

  1. Replies: 1
    Last Post: 07-07-2010, 04:22 PM
  2. set date field on form to date variable
    By laavista in forum Access
    Replies: 3
    Last Post: 06-28-2010, 03:03 AM
  3. Replies: 9
    Last Post: 03-19-2010, 10:37 AM
  4. Replies: 2
    Last Post: 07-31-2009, 06:56 AM
  5. Replies: 1
    Last Post: 12-09-2005, 10:29 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