Results 1 to 2 of 2
  1. #1
    secretary is offline Novice
    Windows Vista Access 2007
    Join Date
    Jun 2011
    Posts
    29

    Date formatting in form textbox controls

    I've set the Format of my textbox to mm/dd/yyyy on my FORM.

    I've set the Format of the BirthDate field to mm/dd/yyyy on my TABLE.
    The Data Type of the BirthDate field is set to Date/Time.

    When I enter: April 6 1967
    The date shows up in the textbox as 04/06/1967 when it losesFocus.
    The date is also stored properly in the table as 04/06/1967.
    Everything is mm/dd/yyyy just as I want it.

    MY ISSUE IS:
    When I CLICK on the textbox to edit it, the date switches to 06/04/1967, yet when I change focus to another textbox, it returns to 04/06/1967. When I simply tab between textboxes this doesn't seem to happen, only when I CLICK and the cursor appears in the textbox.

    Why is this happening and how can I fix it so that even when editing, it shows mm/dd/yyyy in the textbox?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    That is the way an Access DateTime field works, sorry.

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

Similar Threads

  1. Date and Time Formatting
    By reidn in forum Access
    Replies: 8
    Last Post: 07-22-2011, 10:18 AM
  2. Replies: 12
    Last Post: 03-09-2011, 04:16 PM
  3. Conditional Formatting date due color
    By Desstro in forum Programming
    Replies: 1
    Last Post: 12-08-2010, 11:12 PM
  4. Formatting a date
    By NISMOJim in forum Queries
    Replies: 7
    Last Post: 09-17-2010, 05:44 PM
  5. regional settings for Date Formatting
    By marianne in forum Access
    Replies: 3
    Last Post: 06-07-2009, 11:53 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