Results 1 to 2 of 2
  1. #1
    mkc80 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    56

    Date Conversion

    Hi,

    I am trying to convert a date in the text format to Date format using the CDate() function in a sql query in MS Access, which is working fine. But when I try to export the results to a an excel file, the date is being displayed as text field again.

    How do I correctly convert & format the text values and then export the values as Date (Numeric) in to Excel?

    And the date is in the UK format 'dd/mm/yyyy'



    Please advise.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Show your SQL Statement.

    I tested export with the wizard and the date column in Excel was given Custom format of dd-mmm-yy.
    SELECT [103].LabNum, CDate("1/1/2012") AS TestDate FROM 103;
    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.

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

Similar Threads

  1. report conversion
    By nkvs in forum Reports
    Replies: 2
    Last Post: 11-17-2011, 01:04 PM
  2. Number conversion
    By FinChase in forum Access
    Replies: 2
    Last Post: 11-03-2011, 08:16 AM
  3. UM Conversion
    By Rawb in forum Database Design
    Replies: 5
    Last Post: 01-24-2011, 04:02 PM
  4. Replies: 6
    Last Post: 01-04-2011, 05:43 PM
  5. Access VBA - date format conversion
    By benattal in forum Programming
    Replies: 3
    Last Post: 12-22-2008, 10:40 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