Results 1 to 15 of 15
  1. #1
    budedwards is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    9

    Date format issues

    Hopefully someone here can help



    I recently purchased an electronic product from China

    Now the product comes with a hand held device that donwloads the activity of the product

    You then plug it into the PC via the com port and using a piece of software you can see the "audit trail"

    Now from what i can work out it is using a MS Access database

    My problems are thus

    1) the database was password protected(i managed to work around this)
    2) The major problem is the date format is yyyy/mm/dd and i need it to be dd/mm/yyyy

    Of course i can alter Windows XP regional settings but this effects every other piece of software

    I am happy to send anyone the software/database

    Any help appreciated greatly

    Bud

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Access actually stores dates in a serial format, ie. 40982 which equates to today March 14, 2012. So all you really need to do is change how it is formatted in your query or report to get it to look how you want.

  3. #3
    budedwards is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    9
    Hi Alan,

    I printed off some info from the net but i must confess it is jibberish to me

    I have read the piece about setting up custom date formats but alas i end up poking around the database and messing it up

    I will persevere and i feel better now i know its possible

  4. #4
    budedwards is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    9
    Could anyone recommend someone who could look at this problem for me?

    For a reasonable cost?

  5. #5
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Perhaps you can upload your database with some sample data in it. Make sure that it is not confidential material. Run a compact and repair before you upload to keep the size down.

  6. #6
    budedwards is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    9
    Quote Originally Posted by alansidman View Post
    Perhaps you can upload your database with some sample data in it. Make sure that it is not confidential material. Run a compact and repair before you upload to keep the size down.
    I'm happy to do that today, there is nothing confidential as the product is only being tested at the moment.

    I shall upload the database and hopefully if possible someone can figure it out

  7. #7
    budedwards is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    9
    Here is the file attached

    If anyone is able to look at it i will post the password in a private message to them

    I didn't put the password on the document that is how it arrived

    Basically my problem is the date format

    The report prints out the date in yyyy/mm/dd

    As you will all know the uk regional settings are dd/mm/yyyy and i want to know if the DB can be changed to match this??
    Attached Files Attached Files

  8. #8
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    I opened your database.
    There are no reports, so I can't tell you why something appears as it does.

    I did look at your Table called "RECORD".

    I created a query using

    Code:
    SELECT RECORD.Record_id
    , RECORD.Field1
    , RECORD.ddate
    , RECORD.ttime
    , RECORD.open_type
    , Format([ddate],"dd/mm/yyyy") AS myFormatDDMMYYY
    , Format([ddate],"yyyy/dd/mm") AS myFormatYYYYddmm
    , Format([ddate],"yyyy/mmm/dd") AS FormatYYYYMMMDD
    FROM RECORD;
    to show you various options of the Format function. The output (partial output) is in the attached jpg.

    My best guess is that the report you talk about has simply formatted the [ddate] field to produce a specific output.
    If you can find the record source for the report in question, I think you'll find a query with some version of the Format function.

    I'm not sure what the little purple triangle is at the lower right-- but it's in the table as well.
    Attached Thumbnails Attached Thumbnails RecordFormattingDDate.jpg  

  9. #9
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    FYI, I changed the title of this thread from the meaningless "I do not understand MS Access at all" to "Date format issues".
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  10. #10
    budedwards is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    9
    Quote Originally Posted by orange View Post
    I opened your database.
    There are no reports, so I can't tell you why something appears as it does.

    I did look at your Table called "RECORD".

    I created a query using

    Code:
    SELECT RECORD.Record_id
    , RECORD.Field1
    , RECORD.ddate
    , RECORD.ttime
    , RECORD.open_type
    , Format([ddate],"dd/mm/yyyy") AS myFormatDDMMYYY
    , Format([ddate],"yyyy/dd/mm") AS myFormatYYYYddmm
    , Format([ddate],"yyyy/mmm/dd") AS FormatYYYYMMMDD
    FROM RECORD;
    to show you various options of the Format function. The output (partial output) is in the attached jpg.

    My best guess is that the report you talk about has simply formatted the [ddate] field to produce a specific output.
    If you can find the record source for the report in question, I think you'll find a query with some version of the Format function.

    I'm not sure what the little purple triangle is at the lower right-- but it's in the table as well.
    I'm not sure if your saying it is do-able or not?

  11. #11
    budedwards is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    9
    Quote Originally Posted by pbaldy View Post
    FYI, I changed the title of this thread from the meaningless "I do not understand MS Access at all" to "Date format issues".
    Lets hope it helps!

  12. #12
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Quote Originally Posted by budedwards View Post
    I'm not sure if your saying it is do-able or not?
    I'm not sure what you are asking now.
    From your sample data base, I showed you how to use the Format function to change the presentation of the field [ddate].

    I specifically used a query against your table "RECORD".

    In your earlier post you said the report was giving an incorrect/unacceptable presentation of Date. But there was no report in the database you provided.

    Do some research on Report record source. You can try going to the report, go to design,check properties, check data and look at the record source.
    Copy it and post it here for comments.

    It would seem that simply adjusting the Report's record source (to format the date field the way you want it), would solve the issue.

    If I have misunderstood, please clarify.
    Last edited by orange; 03-15-2012 at 10:16 AM. Reason: spelling, clarification

  13. #13
    budedwards is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    9
    Quote Originally Posted by orange View Post
    I'm not sure what you are asking now.
    From your sample data base, I showed you how to use the Format function to change the presentation of the field [ddate].

    I specifically used a query against your table "RECORD".

    In your earlier post you said the report was giving an incorrect/unacceptable presentation of Date. But there was no report in the database you provided.

    Do some research on Report record source. You can try going to the report, go to design,check properties, check data and look at the record source.
    Copy it and post it here for comments.

    If I have misunderstood, please clarify.
    Sorry Orange i don't understand how to do that?

    You have the same database that i uploaded

    i may not of clearly stated my problem

    Is it possible to alter the database so the report comes out in the correct format without changing the regional settings of windows?

  14. #14
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    There is NO REPORT in your database!! so I can not show you exactly what to do.

    Yes it is possible to change the record source of a report to output dates in a specific format without changing the regional settings of windows

  15. #15
    budedwards is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    9
    Quote Originally Posted by orange View Post
    There is NO REPORT in your database!! so I can not show you exactly what to do.

    Yes it is possible to change the record source of a report to output dates in a specific format without changing the regional settings of windows
    Ok thanks for your assistance

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

Similar Threads

  1. Date field not in date format
    By Lorlai in forum Access
    Replies: 11
    Last Post: 06-27-2011, 05:14 PM
  2. Date expression issues
    By QTip in forum Queries
    Replies: 4
    Last Post: 01-06-2011, 03:43 PM
  3. Date Format
    By lonewolfwfk in forum Programming
    Replies: 4
    Last Post: 11-25-2010, 09:00 PM
  4. date format
    By dollygg in forum Access
    Replies: 2
    Last Post: 01-19-2010, 10:14 AM
  5. Date Format
    By St3ph3n in forum Access
    Replies: 4
    Last Post: 03-09-2006, 11:23 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