Results 1 to 3 of 3
  1. #1
    dantnz is offline Novice
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    4

    American/European date format issue

    Sorry, I know this is most likely an easy fix, but nothing that I have tried has worked so far, and after some searching I can't seem to find the solution.
    I have a datasheet form that has the date from the previous record as default for a new record. Currently when I go to create a new record it changes the date from european to american (eg. if the previous date was 11 april this will change to 4 nov due to the differences in date formats. How can I fix this? thanks

    The code:

    Private Sub applDate_AfterUpdate()

    If Not IsNull(Me.applDate.Value) Then
    applDate.DefaultValue = "#" & Me.applDate & "#"
    End If

    End Sub

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    How is your Regional settings configured for date at the Windows7 level?

  3. #3
    dantnz is offline Novice
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    4
    Windows 7 settings are configured correctly, I read somewhere that when the ## are used for date stuff that access does the american format regardless, so i think i somehow have to use DateValue() instead, but i'm not quite sure how i would do that?

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

Similar Threads

  1. Format Issue
    By trueblue7 in forum Reports
    Replies: 4
    Last Post: 12-04-2010, 10:50 PM
  2. Date Format
    By lonewolfwfk in forum Programming
    Replies: 4
    Last Post: 11-25-2010, 09:00 PM
  3. date format
    By dollygg in forum Access
    Replies: 2
    Last Post: 01-19-2010, 10:14 AM
  4. Access 2007: Percent Format Issue
    By diane802 in forum Access
    Replies: 6
    Last Post: 12-30-2009, 10:29 AM
  5. Date Format
    By wasim_sono in forum Forms
    Replies: 2
    Last Post: 08-15-2006, 01:20 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