Results 1 to 5 of 5
  1. #1
    Oblio is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    50

    Unhappy Data entry of date as numbers only with no spaces or punctuation, then format as yyyy-mm-dd

    Hi,



    I am using MS Access 2016, 64 bit.
    My form f_Courses is based on a table that holds a date/time field named Start_Date

    We would like to enter dates without punctuation or spaces, however, using the Format area in the property section, I believe, and set the Format as yyyy-mm-dd.

    So far I have tried placing the custom input mask 00000000 at the form level, table level, both, and it will allow me to enter in all of the digits as shown by the placeholder and I have recounted them to ensure I have done it right, but I get an error that the value entered is not valid for that field. To be clear, February 1, 2017, I am entering as 20170201, and want it to format as 2017-02-01 (yyyy-mm-dd).

    Can anyone point out what I am doing wrong? Or, how this should be accomplished? I know we can use the date picker, however, some of our data entry people like to enter it as just the numbers...

    Thank you very much for taking the time to review my question !

    Hope you are having a great day!

  2. #2
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    February 1, 2017 can be entered as 1/2 or 1.2 - far less characters to type and less chance of error. Can you not teach your users this?

    Otherwise you will need to make it a text field and change it to a date after they have entered it - open to errors, naturally.

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Mask 00000 means nothing for dates. They are numeric anyway.
    dates can be set to any format but are still dates. It seems that this should work.

  4. #4
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Try setting the input mask to 0000/00/00 and the Format to yyyy-mm-dd.

    The textbox will switch to the display format when you tab out of it.

  5. #5
    Oblio is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    50
    This works exactly as I have asked for !!!! Thank you SO MUCH !!!!!!!
    It was driving me crazy, so thank you for helping me out

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

Similar Threads

  1. Replies: 1
    Last Post: 05-22-2014, 06:32 AM
  2. Replies: 1
    Last Post: 01-18-2014, 08:33 PM
  3. Replies: 3
    Last Post: 01-03-2014, 03:14 AM
  4. Can access format a date in an odd way? DD-MMM-YYYY
    By redbull in forum Programming
    Replies: 3
    Last Post: 08-23-2013, 11:34 AM
  5. Replies: 1
    Last Post: 06-11-2009, 05:40 PM

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