Results 1 to 4 of 4
  1. #1
    clebergyn is offline Advanced Beginner
    Windows 7 32bit Access 2003
    Join Date
    Dec 2012
    Location
    Brazil
    Posts
    48

    I am Brazilian, date "12/01/2014" appears as "1/12/2014" when launched?

    I cast the date 12/01/2014 in a table by an "append query" and appears 1/12/2014? why? already formatted in format and nothing, some other dates like 19/01/2014, this does not happen.
    the date 01/19/2014 generates correct but the date 01/12/2014 generates wrong, generates inverted (01/12/2014)

    use Access 2010

    see the example codeCurrentDb.Execute "Delete * from datatemp"
    function dt(d)
    CurrentDb.Execute "INSERT INTO datatemp( dt ) SELECT #" & d & "# AS d4"
    CurrentDb.Execute "INSERT INTO datatemp( dt ) SELECT #" & (d + 1) & "# AS d4" '


    CurrentDb.Execute "INSERT INTO datatemp( dt ) SELECT #" & (d + 2) & "# AS d4"
    end function

    I need to be via vba code

    where do I attach the file?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    International date topic of a number of threads. Here is one https://www.accessforums.net/forms/i...-mm-40471.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Allen Browne, one of the foremost authorities on Access, resides 'down under,' where they use the dd/mm/yy date format, and has an excellent article on the subject:

    International Dates in Access

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  4. #4
    clebergyn is offline Advanced Beginner
    Windows 7 32bit Access 2003
    Join Date
    Dec 2012
    Location
    Brazil
    Posts
    48
    thanks very much! resolved!
    format(data,"mm\/dd\/yyy")
    was just right

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

Similar Threads

  1. Checkbox appears as integer on screen
    By yotamoo in forum Queries
    Replies: 3
    Last Post: 01-16-2013, 02:41 AM
  2. Count How Many times a value appears in a table
    By younggunnaz69 in forum Queries
    Replies: 1
    Last Post: 10-19-2011, 10:29 PM
  3. Chart legend appears as date
    By Vronsky in forum Programming
    Replies: 0
    Last Post: 06-09-2011, 05:20 AM
  4. Function: add date when record appears on report
    By Theremin_Ohio in forum Reports
    Replies: 1
    Last Post: 05-17-2011, 08:03 AM
  5. Replies: 1
    Last Post: 08-27-2008, 12:39 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