Results 1 to 2 of 2
  1. #1
    Elios is offline Novice
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    1

    Get Varying Query Columns into Report

    Hello all, this is my first post - I've been googling everywhere for a solution. Thanks in advance for any help anyone may have...



    I have a query that returns monthly metrics for the past 6 months. The columns look like this:

    |item id| item info...| 1/2011 | 2/2011 | and so on...|

    The report I want to create will have all the columns from this query. I want to put it into a report so i can show groupings such as "item category". The problem comes when I use the Report wizard and I add all the columns over. The month columns are not always the same. If I run the query today it will show months 11/2010 to 4/2011 but if I run the query in July it will show 1/2011 to 6/2011.

    Is there a way that I can design a report to simply include every column from a query?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Simple answer is No. However, VBA code can change control properties (ControlSource, Caption). I have done this to change Caption on report but not ControlSource. I have changed ControlSource on forms. The code would be in the Detail_Format event.

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

Similar Threads

  1. report has several columns
    By Fretless in forum Reports
    Replies: 0
    Last Post: 03-04-2011, 03:31 PM
  2. Report cells and columns
    By romadm in forum Reports
    Replies: 0
    Last Post: 01-20-2011, 01:53 PM
  3. Replies: 2
    Last Post: 08-29-2010, 01:17 AM
  4. help with columns in report
    By bjsbrown in forum Reports
    Replies: 8
    Last Post: 06-14-2010, 09:17 PM
  5. Replies: 0
    Last Post: 03-11-2010, 09:06 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