Results 1 to 5 of 5
  1. #1
    mbenton's Avatar
    mbenton is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2015
    Posts
    73

    Changing date format in large database.

    Hello, I've been ask to make all "date" fields consistent in large database (only about 3 or 4 forms with approx. 4 or 5 date fields combined). Currently some entries require "mm/dd/yyyy" which needs to be changed to "mm/dd/yy". Ordinarily I would make the change at the table level but unfortunately for me I have a few ODBC tables that have very strict guidelines set by the company and I cannot make any design changes to the tables. The ODBC tables hold all my date fields that I need to change! All dates are set to "Short Date" in the ODBC tables. My question is two-fold, first is it even possible to override the Short Date format in my ODBC tables so that "mm/yy/dd" will appear on the forms? If so, how? I've tried changing the date format through field properties but it doesn't work, perhaps due to the higher priority table level setting. Can anyone recall a similar experience, or steer me in the right direction to get around this? *It's an established database with much data and I'd rather avoid any drastic solutions if possible. Thanks.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    if the field is set to DATE type, then (aside from mixing month and day) it doesn't matter how the date is entered, be it 2 digit year, or 4
    JANUARY or 1 or Jan
    You just set the format on how you want to see it.
    Granted if users enter the data wrong , some dates will get rejected , but some wont but be wrong.

    but if you want: "mm/yy/dd"
    then display it in the text box or query grid, using FORMAT([DATE],"mm/yy/dd")

  3. #3
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    I've tried changing the date format through field properties but it doesn't work
    'doesn't work' is not very informative - what exactly did you use for the format property and what result did you get? I've never had a problem using the format property for dates.

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    in a query, right click on the 'field' column, properties, format
    or
    type FORMAT([DATE],"mm/yy/dd") directly in the query field
    or
    set format property in the form text box.

  5. #5
    mbenton's Avatar
    mbenton is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2015
    Posts
    73
    The Input Mask feature on the Data tab in Properties allow me to create new date format, problem solved...thanks for advice.

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

Similar Threads

  1. Replies: 1
    Last Post: 06-13-2015, 11:05 AM
  2. Replies: 7
    Last Post: 09-19-2014, 07:29 AM
  3. Changing a Field Format
    By lwinford in forum Forms
    Replies: 3
    Last Post: 04-23-2013, 01:18 PM
  4. Replies: 4
    Last Post: 03-12-2013, 06:49 PM
  5. Query changing format
    By John Southern in forum Queries
    Replies: 3
    Last Post: 07-05-2010, 09:57 AM

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