Results 1 to 4 of 4
  1. #1
    bet is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2011
    Posts
    6

    Issues with Export Access report with Now() to Excel

    In Access 2010 report, there is a Now() which is a long date with time format and it looks fine in the Access report. However, it gets converted to numeric format when exported to Excel spreadsheet. I have to manually format it to date in Excel. This is a problem since I have so many reports to be exported to Excel from Access 2010. Can that be corrected when export to Excel? Any help is greatly appreciated.

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    Just a thought, create a macro (or module) in Excel that formats a column to a certain type. During your export procedure, Open Excel, export, run macro/module, save, exit. Set the visible attribute to 0 (or false, or whatever it is) and you wont see any of it happen.

  3. #3
    bet is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2011
    Posts
    6
    so I would need to write VBA code in Access module to Open Excel, format the cell and get it ready to accept the report with the Now() format? This sounds pretty complex, and I have so many reports...is there any other way? Doesn't there any type of add on to fix this bug? Thank you for your help.

  4. #4
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    You wouldn't have to write the code out for each report, so the number of reports doesn't really mean much. You could also start with a preformatted xls that you populate.

    I don't know of an addon that can do this for you. you can google for some Access APIs but who knows what you'll find in there.

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

Similar Threads

  1. Replies: 1
    Last Post: 08-19-2010, 01:08 PM
  2. Replies: 1
    Last Post: 08-12-2010, 10:04 PM
  3. Access 2003 - Export Report to HTML
    By darth.pathos in forum Import/Export Data
    Replies: 0
    Last Post: 03-20-2010, 01:13 PM
  4. Access export to Excel
    By Rick West in forum Import/Export Data
    Replies: 4
    Last Post: 01-09-2010, 03:40 PM
  5. Export Access Pivot Table to Excel
    By graviz in forum Programming
    Replies: 1
    Last Post: 11-13-2009, 07:30 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