Results 1 to 2 of 2
  1. #1
    stephenaa5 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2009
    Posts
    72

    outputto date/time


    Hello. I have an export from Access to XLS that works just fine except for one irritation. The data in Excel comes out as DATE, where the live data is DATE-TIME. It's easily fixed in Excel by changing the column formats (data is retained), but this is a PITA for users.

    Any suggestions?

    I'm currently just using


    Docmd.Outputto acoutputquery, "payrollapproval", acformatXLS


    Works like a charm, excepting the formatting.

    Thanks in advance!

    Stephen.

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    in your output query are you specifically setting a format in the export?

    have you tried something like

    ExportDateConv: format([TestDate], "General Date")

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

Similar Threads

  1. Subtracting a date/time field from a number to get date/time
    By Lifeseeker1019 in forum Programming
    Replies: 4
    Last Post: 03-28-2014, 12:59 PM
  2. Replies: 1
    Last Post: 03-13-2014, 07:23 PM
  3. Replies: 4
    Last Post: 03-06-2013, 02:32 PM
  4. OutputTo Macro Include today's date
    By Lorlai in forum Access
    Replies: 2
    Last Post: 09-27-2011, 01:42 PM
  5. Replies: 6
    Last Post: 01-04-2011, 05:43 PM

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