Results 1 to 4 of 4
  1. #1
    Appollobsg75 is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2022
    Posts
    13

    Date Picker for Select Parameters when running query

    I have an access database and in it I have a few queries that run on a date field. They have the date range =between [start date] and [end date]. so when I run the query it pops up with me to enter in that information. Is there a way to enter a date picker on that select parameter window? Or do I need to create something else to allow for a date picker?
    Attached Files Attached Files

  2. #2
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    Short answer is No.

    You should build a form with two unbound controls txtDateFrom and txtDateTo. Format them to short date. Then the date-picker will appear when you are in those controls.
    You can then refer to those in your query instead of your parameters.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,412
    CAHS Hour Tracker - Craig-davegri-v01.zip

    AS Minty suggests: Add a popup form to enter the dates
    Click image for larger version. 

Name:	Popup.png 
Views:	16 
Size:	48.6 KB 
ID:	48041

    Then modify the Edit Hours form's recordsoure query:

    Click image for larger version. 

Name:	Query.png 
Views:	16 
Size:	49.2 KB 
ID:	48042

  4. #4
    Appollobsg75 is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2022
    Posts
    13
    Thank you Minty and davegri, it works out fine. I will use it that way with a form to use for my start date and end date, instead of the parameters I was using before. I appreciate the help. May the Force be with you.

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

Similar Threads

  1. Replies: 8
    Last Post: 01-26-2022, 10:01 AM
  2. Disable date picker when mde running in A2007 or greater
    By GraeagleBill in forum Programming
    Replies: 6
    Last Post: 03-10-2016, 07:04 PM
  3. Replies: 11
    Last Post: 11-13-2015, 05:11 PM
  4. Date Picker for running a Query
    By smckenna in forum Queries
    Replies: 8
    Last Post: 02-26-2015, 12:43 PM
  5. Replies: 1
    Last Post: 03-05-2011, 03:05 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