Results 1 to 2 of 2
  1. #1
    MSommer is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Jul 2023
    Posts
    10

    Custom Date Input Mask or User Entry Options

    I am replacing an Excel spreadsheet with an access database for better data structure, better user experience and reporting. For dates in the Excel file the users are use to being able to enter 8/2 or 8/2/23 and Excel formats it as 8/2/2023 (puts the year in for them and ignores leading zeros in the month and day). Those Excel columns are simply short date format, no code.

    In my database the date fields in my forms are formatted as mm/dd/yyyy and I have a short date input mask on them. This means the users must enter the dates as 08252023 then it will auto insert the /. But if they try to enter 8/2 or 8/2/23 like they do in Excel, Access doesn't put the numbers in the correct place and throws an error.



    I researched the input mask values to create a custom input mask and tried 90/90/9900 but that didn't work either. I insured the format was set as well as the input mask. Date picker is turned off. Is it possible to achieve the same functionality in Access for date input as Excel? Maybe even through VBA? I've been researching and cannot find much on the subject. It would be great if they could enter 8/2 and it result in 8/2/2023 or if the date was a different year than current year they could override and type 8/2/22 and it would store as 8/2/2022. Thanks for any ideas you may have.

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    suggest remove the input mask - often more trouble than they are worth.

    As with excel, user would still need to type the /

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

Similar Threads

  1. Time Entry with Input Mask
    By Jxsmith in forum Forms
    Replies: 6
    Last Post: 05-03-2018, 04:26 PM
  2. Input Mask Options for Computer Processor Speed
    By LeadTechIG in forum Database Design
    Replies: 4
    Last Post: 01-15-2015, 07:52 PM
  3. Custom input mask
    By Paintballlovr in forum Forms
    Replies: 14
    Last Post: 10-29-2013, 07:11 AM
  4. Custom (?) Date Input Mask
    By SeaTigr in forum Access
    Replies: 3
    Last Post: 11-07-2011, 02:40 PM
  5. Custom Data input mask or format?
    By RiverAnimal in forum Database Design
    Replies: 2
    Last Post: 12-06-2010, 09:58 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