Results 1 to 4 of 4
  1. #1
    DefinitelyMaybe is offline Advanced Beginner
    Windows 10 Access 2002
    Join Date
    Dec 2020
    Posts
    65

    Converting Month/Year to Short Month

    Hi All,



    I have data coming in a table as January2021. I would like to convert this to Jan for reporting. I tried doing a left formula grabbing first 3 characters but in the report but the report shows the field names available as "Jan" and "Feb" as opposed to Month, the name I gave the field in the query. I also need to make sure the report sorts the months in proper order as well not alphabetized.

    Thanks in advance for your help,

    Eric

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    a bit more information required

    1. is the field a text field or a date field?

    2. what does this mean?
    in the report but the report shows the field names available as "Jan" and "Feb" as opposed to Month, the name I gave the field in the query.
    3. would also help know what you actually did to produce this result. It might be you are using a crosstab query or it might be your data is not normalised

    4.
    I also need to make sure the report sorts the months in proper order as well not alphabetized.
    to do this you need a numeric value for the month 1 for Jan, 2 for Feb etc. Can't advise until you answer the other 3 questions

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    format([datefield],"mmm")

  4. #4
    DefinitelyMaybe is offline Advanced Beginner
    Windows 10 Access 2002
    Join Date
    Dec 2020
    Posts
    65
    Hi Ajax and ranman,

    I was able to get an actual date to use instead of using the month with year combined in the field then converted to number month as you suggested Ajax.

    Thanks,

    Eric

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

Similar Threads

  1. Replies: 4
    Last Post: 07-13-2015, 02:06 PM
  2. age and day - month - year
    By azhar2006 in forum Access
    Replies: 4
    Last Post: 08-21-2014, 08:30 AM
  3. Replies: 4
    Last Post: 05-26-2013, 03:28 PM
  4. Year to DATE by Month
    By lugnutmonkey in forum Queries
    Replies: 1
    Last Post: 01-18-2013, 05:37 PM
  5. by year by month
    By nkuebelbeck in forum Reports
    Replies: 21
    Last Post: 03-24-2010, 01:53 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