Results 1 to 2 of 2
  1. #1
    jsberry is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Jun 2017
    Posts
    1

    date/time input mask and date ordering

    I want to create a date field in access but only want date and month, the only way I can see to do it is with text rather than date/time otherwise it keeps putting 2017 at the end.



    I also want it to order the information into date and month but cant get it to order both.

    I ma using access 2016

    any help on this please.

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    were I you instead of trying to format a field I would make two fields, one for the month, one for the year (similar to web form data entry when asking for a credit card expiration month and year). Then you can limit the user to only a valid selection of months (1 through 12) and years so they can't do something crazy like 1234132/938981234

    The other option is to use a format statement

    format([datefield], "mm/yyyy")

    but I wouldn't recommend this unless you are just using it for display purposes on a form or report and do not intend to use it as a data entry field.

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

Similar Threads

  1. Replies: 4
    Last Post: 07-15-2015, 12:42 PM
  2. Adding Long Date to Input Mask
    By wes9659 in forum Access
    Replies: 1
    Last Post: 02-13-2015, 01:51 PM
  3. Time Input mask - arrgh!
    By Sheba in forum Forms
    Replies: 1
    Last Post: 09-16-2014, 01:43 PM
  4. Date Input Mask in Query?
    By DelbyJones in forum Access
    Replies: 3
    Last Post: 09-01-2012, 11:08 AM
  5. Custom (?) Date Input Mask
    By SeaTigr in forum Access
    Replies: 3
    Last Post: 11-07-2011, 02:40 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