Results 1 to 5 of 5
  1. #1
    john is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    5

    Access Table


    In MS Access Table, how do you format the date to show only Month and Year only?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    no need to do it in the table, do it in query. but either way:

    format([datefld],"yyyy-mm")

  3. #3
    john is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    5
    When a user enters the date it should be in MM/YY format. how can I change it?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    MM/YY isn't a date, it's two thirds of a date. If they enter that, what day of the month is it? You wouldn't be able to enter directly into a date/time field with that format. You could let them enter that in an unbound textbox and parse it out, adding a day and using the DateSerial() function to make a complete date.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    Very confusing. In post#1 you want to show only month and year.
    In Post#3 you say the user enters month and year and you want to change it. To what?

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

Similar Threads

  1. Export Filtered table to Excel, Edit and Re-Import Changes to Access Table
    By Access_throwaway in forum Import/Export Data
    Replies: 15
    Last Post: 02-20-2018, 12:37 PM
  2. Replies: 2
    Last Post: 08-31-2017, 12:19 PM
  3. Replies: 13
    Last Post: 05-15-2013, 09:52 AM
  4. Replies: 2
    Last Post: 10-09-2012, 03:20 PM
  5. Replies: 2
    Last Post: 10-27-2009, 07:09 AM

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