Results 1 to 3 of 3
  1. #1
    wtucker is offline Advanced Beginner
    Windows 8 Access 2016
    Join Date
    Jun 2017
    Posts
    50

    Unbound Date Picker in Report

    Hey Everyone,

    My issues seems really simple but I can't figure it out.

    We want to add a date picker to a report. The date doesn't need to be saved anywhere, so the control is unbound.
    I just want to be able to open the report, click on the field, and open the date picker.
    I tried adding a text box and setting the format to short date, but I'm not getting the date picker.

    Thanks!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    you dont open date pickers in reports.
    you set the date in the Form, then open the report which reads the pick date.

    1. on a form put the text box. Set the format of the text box to short date. Now the picker will appear.
    2. enter a date in the box
    3. open the report

    docmd.openreport "fMyReport",,acViewPreview ,,"[dateFld]=#" & me.txtBox & "#"
    Last edited by ranman256; 10-25-2017 at 06:40 PM.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    Agree with ranman. Even though ReportView allows typing into UNBOUND textbox on report, best practice is to use form for input/selection of filter criteria.

    The $ is a typo, should also be #.
    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.

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

Similar Threads

  1. Replies: 11
    Last Post: 06-28-2015, 06:42 PM
  2. Replies: 3
    Last Post: 03-09-2014, 02:19 PM
  3. Show Date Picker on Load and Verifying Date
    By Markb384 in forum Forms
    Replies: 4
    Last Post: 03-04-2014, 07:44 AM
  4. Date criteria using between and form date picker
    By killermonkey in forum Queries
    Replies: 3
    Last Post: 03-21-2013, 12:44 PM
  5. Replies: 5
    Last Post: 06-22-2011, 08:47 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