Results 1 to 3 of 3
  1. #1
    Xarkath is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Location
    Millcreek WA
    Posts
    92

    Crosstab Query Report

    Before getting into this I want to clarify that I am already using the VBA for dynamic reporting but I have a few issues with it so I am really looking for something that is not so heavy handed.



    I have a crosstab query that has 6 static fields including the totals and variable fields numbers from 1 to 12 fields depending on the number of services rendered. I am simply looking for a way to create the reports on the fly. Don't need to format them or save them as ultimately they will be exported to Excel and all formatting will be done there. Ideally I would like a macro or VBA that just points to the correct query and initiates the native create report feature but opens it in report view versus design view. This way nothing needs to be done with column labels or deleting unused columns or any of that.

    Initially I thought it would be easy to setup a macro for this but I cannot find the command to trigger the create report event. Is this even possible? Compared to other that can be done this seems like it should be simple if not straightforward.

    Any advice is appreciated.

    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    If you only want to export to Excel, why a report - just export query.

    Review:

    http://allenbrowne.com/ser-67.html

    http://www.access-programmers.co.uk/...ad.php?t=78952
    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
    Xarkath is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Location
    Millcreek WA
    Posts
    92
    That is a possibility but sometimes there may be no data to export so my thought was that a report would give the user the opportunity to cancel the process prior to export but I suppose I could just let them view the query directly.

    Based on the second link you posted I will assume that there is not a simple command to run the native create report function.


    Thanks for the response.

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

Similar Threads

  1. Crosstab query report error
    By Derrick T. Davidson in forum Queries
    Replies: 3
    Last Post: 01-29-2015, 06:56 PM
  2. report from crosstab query
    By mike02 in forum Reports
    Replies: 1
    Last Post: 07-19-2013, 12:49 PM
  3. CrossTab Query - Report Issue ?
    By AndreasPanayiotou in forum Reports
    Replies: 0
    Last Post: 09-25-2012, 01:11 AM
  4. Report From CrossTab Query
    By GSS in forum Reports
    Replies: 5
    Last Post: 02-21-2012, 05:02 PM
  5. Report using a Crosstab Query
    By Paul H in forum Reports
    Replies: 2
    Last Post: 02-09-2012, 04:35 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