Results 1 to 5 of 5
  1. #1
    sanal is offline Advanced Beginner
    Windows 10 Access 2007
    Join Date
    Feb 2018
    Posts
    43

    Date format problem create errors in append queries


    The access application created by me works not properly when used in other computers which have date format in US format. An append query which has date fields insert duplicate records in the destination table. How can we prevent it. Is it possible to ensure the date format in the access application is in UK format dd/mm/yyyy irrespective of the system format . ie. Even if the application is used in a system which has date format in US mm/DD/ yyyyy all the date fields in the application should be UK format of DD/mm/yyyy . Please help.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    See if this provides help http://allenbrowne.com/ser-36.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
    sanal is offline Advanced Beginner
    Windows 10 Access 2007
    Join Date
    Feb 2018
    Posts
    43
    Thank you for the reply. How can we ensure the date format in a form field always be DD/mm/ yyyy irespective of the system format. The following code in the load event of the form has not succeeded.
    Me.Text3=Format(Me.Text3, "DD/mm/yyyy")
    Please help me.
    Last edited by sanal; 02-28-2019 at 10:15 PM.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Since this is not an issue I have to deal with, I am not certain how. Can only refer you to Allen Browne or to search other discussions on the topic.
    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.

  5. #5
    ijaz8883 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    103
    Quote Originally Posted by June7 View Post
    Since this is not an issue I have to deal with, I am not certain how. Can only refer you to Allen Browne or to search other discussions on the topic.
    I think there is no need for any code.
    You just go to your forms txtbox property (by pressing F4) and in format tab and in format just enter the format dd-mm-yyyy its done. Now there is no more need to use any code. In case your system Date is Feb-24-2019 it would be converted into 24-02-2019.
    Hope your problem will be solved. If so let me know.
    Thanks
    Click image for larger version. 

Name:	solution.jpg 
Views:	7 
Size:	55.9 KB 
ID:	37711

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

Similar Threads

  1. Replies: 5
    Last Post: 04-11-2018, 11:31 AM
  2. iif and date format problem
    By ArvinFx in forum Queries
    Replies: 3
    Last Post: 05-18-2017, 12:32 PM
  3. Problem with date format in access 2010
    By BobsWright in forum Access
    Replies: 3
    Last Post: 03-15-2013, 05:21 PM
  4. Date Format Problem
    By wrangler_0002004 in forum Access
    Replies: 7
    Last Post: 07-21-2012, 10:33 PM
  5. Having problem in date format
    By paddybear in forum SQL Server
    Replies: 3
    Last Post: 01-06-2012, 01:22 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