Results 1 to 9 of 9
  1. #1
    chubbychub is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Apr 2019
    Posts
    17

    dates does not show in proper format

    i have a table in the column , i want it to show month and year only
    like this: 06/24
    06 being the month, and 24 being the year
    but it shows as 62/4 or 624
    and for october, november and december ..when we enter data, we enter it with 4 digits number, but for the rest of the month, we just enter 3 digits ..being only month and year
    please see attachment, thanks in advance.
    Attached Files Attached Files

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    you can set the FORMAT in query column property: mm/yy
    or
    force it as: format([dateFld],"mm/yy")

  3. #3
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,545
    Quote Originally Posted by chubbychub View Post
    i have a table in the column , i want it to show month and year only
    like this: 06/24
    06 being the month, and 24 being the year
    but it shows as 62/4 or 624
    and for october, november and december ..when we enter data, we enter it with 4 digits number, but for the rest of the month, we just enter 3 digits ..being only month and year
    please see attachment, thanks in advance.
    Where are there any records that have a forward slash "/" ?
    All I see is one table with one field of short text type
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  4. #4
    chubbychub is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Apr 2019
    Posts
    17
    but how do i do that? can you please do it for me so i can see how it works? please

  5. #5
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,572
    Hi

    It would help when you create a field which is a Date Field that you actually make the DataType a Date/Time rather than Text.

    In the attached I created a Form based on your table and as Ranman suggested just Format the Date Field.

    I only did a few of the records rather than the whole 900+
    Attached Files Attached Files
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  6. #6
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,545
    Quote Originally Posted by mike60smart View Post
    Hi

    It would help when you create a field which is a Date Field that you actually make the DataType a Date/Time rather than Text.

    In the attached I created a Form based on your table and as Ranman suggested just Format the Date Field.

    I only did a few of the records rather than the whole 900+
    Not sure that will fulfil the OP's requirement from post #1
    and for october, november and december ..when we enter data, we enter it with 4 digits number, but for the rest of the month, we just enter 3 digits ..being only month and year
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  7. #7
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,545
    Quote Originally Posted by chubbychub View Post
    i have a table in the column , i want it to show month and year only
    like this: 06/24
    06 being the month, and 24 being the year
    but it shows as 62/4 or 624
    and for october, november and december ..when we enter data, we enter it with 4 digits number, but for the rest of the month, we just enter 3 digits ..being only month and year
    please see attachment, thanks in advance.
    You should be using a form to edit data rather than a table which should be used just for data storage.
    In the attached db I have created a form which will enable you to enter 0122 and get 01/22 or enter 122 and get 1/22
    The changes are made in the AfterUpdate event of the textbox.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  8. #8
    chubbychub is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Apr 2019
    Posts
    17
    Thank you mike60smart, that what i need. Is there a tutorial or link you can point at on how to do that? or instructions? please.
    I have a column with data already and macros running on respective columns, ( and i dont know what is relevant and what is not relevant as i am very limited with what i know with access)
    I have it in a column, and only need somethign simple, but not sure how to go about it.

  9. #9
    chubbychub is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Apr 2019
    Posts
    17
    thank you bob fitz and mike60smart and ranman256! i found a tutorial and got it. thread marked as solved and rep added!

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

Similar Threads

  1. Form will not save in Proper Format
    By Lou_Reed in forum Access
    Replies: 2
    Last Post: 07-31-2017, 07:19 AM
  2. Creating Proper format on Address Direction
    By wes9659 in forum Programming
    Replies: 11
    Last Post: 09-03-2014, 06:40 PM
  3. Replies: 2
    Last Post: 08-03-2014, 11:00 AM
  4. Replies: 1
    Last Post: 06-29-2014, 01:40 PM
  5. email notification with proper format
    By joshynaresh in forum Access
    Replies: 5
    Last Post: 02-04-2014, 10:17 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