Results 1 to 4 of 4
  1. #1
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126

    search between 2 dates using the date picker

    i have a query in place that uses a form with a date picker, the date is stored into a variable in a query which is the used in a report to present the sales



    Click image for larger version. 

Name:	1.png 
Views:	16 
Size:	33.2 KB 
ID:	11702

    i wanted to search for sales beween 2 dates, using the same method, with the date picker on the form.
    i have tested a query using >=09 mar 2013 and <=23 mar 2013, how do i go about using the date picker to get the second date

    thanks

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    between [StartDate] and [EndDate]

  3. #3
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126
    i can put [startdate] and [enddate] in the query but how can i carry on using the form? do i need 2 date pickers?

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Yes, you'd need two text boxes then your query criteria would be

    Betwen [Forms]![Formname]![StartDateFieldName] and [Forms]![Formname]![EndDateFieldName]

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

Similar Threads

  1. Date criteria using between and form date picker
    By killermonkey in forum Queries
    Replies: 3
    Last Post: 03-21-2013, 12:44 PM
  2. Date Picker?
    By gazzieh in forum Forms
    Replies: 9
    Last Post: 02-09-2013, 09:35 AM
  3. Date Picker Changed All Dates
    By deesy58 in forum Forms
    Replies: 11
    Last Post: 02-05-2013, 08:33 AM
  4. Another date picker.
    By Rod in forum Code Repository
    Replies: 1
    Last Post: 11-05-2012, 07:53 PM
  5. Date search results wont include selected dates.
    By UserJohn7673 in forum Queries
    Replies: 3
    Last Post: 09-21-2012, 11:42 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