Results 1 to 4 of 4
  1. #1
    sprovoyeur is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2009
    Posts
    12

    Datepicker set to short date: displays time?


    Sorry if already asked, couldn't find it in search. Using Access 2007. Have an unbound text box set up to use the datepicker. Works fine but as soon as I click on the text box and it gets the focus, both the date AND the time are displayed in it until the box loses focus, at which time just the short date is displayed as per the format property setting. Does anyone know of a way for the text box to show the short date all the time, not just when the box does not have the focus?

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    wow, strange issue.

    check your mask settings in the table field. also check any default value. also check any code behind the control's events. something is causing it. it's probably not a bug.

  3. #3
    sprovoyeur is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2009
    Posts
    12
    Thanks very much for the feedback. As you suggested I checked the default value. The issue arises when you set the default value to Now(). Once you do that, even if the format is set to short date, everytime you click on the box the date AND the time appear. You must use the Date() function to set the default value if you are going to use short date as the format.

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    well congrats! You just found out something about Access.

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

Similar Threads

  1. Replies: 1
    Last Post: 07-11-2011, 04:35 AM
  2. Short date comparison
    By andy101 in forum Programming
    Replies: 2
    Last Post: 03-17-2011, 04:36 AM
  3. Replies: 12
    Last Post: 02-22-2011, 03:39 PM
  4. Replies: 6
    Last Post: 01-04-2011, 05:43 PM
  5. ActiveX Control calendar (datepicker)
    By aakann in forum Programming
    Replies: 16
    Last Post: 12-22-2010, 10:33 AM

Tags for this Thread

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