Results 1 to 6 of 6
  1. #1
    agent- is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    45

    Export Report to Excel without Date() and Time()

    Hello,



    I need to be able to Export a report to Excel with only the detail section being exported. The header is also being exported for two Text boxes that have Date() and Time() as control source. There are no labels for these boxes and they are still being exported to Excel. Is there anyway to disable them from being exported?

    If not I will have to create the queries and write the VBA to export that to excel, but if this is possible it would help a lot.

    Thanks!!

  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,958
    You are using the Export dialog? Is there other data in the header you do want? If not, what happens if the header is set to not visible?
    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
    agent- is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    45
    Yes I am using Export dialog.

    There is no data in header that I want. In addition, when it is NOT visible, it still exports to Excel

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,958
    Then I guess query is the only way to restrict what goes. Export the query by the dialog or VBA.
    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
    agent- is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    45
    Yeah that is what I decided to set up also. Seems strange that it was auto pulling the date/time from the header but NOT from the footer.

  6. #6
    CGM3 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Atlanta, GA
    Posts
    49
    Actually, it seems to be more extensive than that.

    I'm designing a report that will be exported to Excel, and which has all of its Display data in text boxes arranged in a single row across the sheet (so the report gives a simple matrix with each record on a different row.) Most of these text boxes use formulae to display data in the desired format (for instance, the txtInclude field reads Included if the Include Boolean field in the table is True, otherwise it reads Excluded.)

    When I export the report to an Excel spreadsheet, the first row of the sheet holds the name of the corresponding text box in the Detail display, even the ones that don't have a formula, with the remaining rows holding the expected record values. Thus, the column with the Include field data has txtInclude on row 1, with Included or Excluded in the rows beneath it.

    I can go with a query, but it would be nice to know how (if possible) to suppress this, uhm, "undocumented feature." (Because we all know Microsoft applications just don't have bugs! )

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

Similar Threads

  1. Date/time export to CSV file
    By kaptin in forum Import/Export Data
    Replies: 3
    Last Post: 05-08-2011, 06:57 AM
  2. Report Export to Excel
    By BLD21 in forum Import/Export Data
    Replies: 1
    Last Post: 05-06-2011, 10:19 AM
  3. Access date export to excel
    By jituknows in forum Access
    Replies: 1
    Last Post: 02-05-2011, 01:32 PM
  4. Replies: 3
    Last Post: 02-01-2011, 10:18 AM
  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