Results 1 to 4 of 4
  1. #1
    bmschaeffer is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2011
    Posts
    24

    Monthly Trend Query/Report


    I have a table that contains a column called posting period. I want to run a query, that will find a report that shows a YTD trend by month by vendor. I know this can be done using a crosstab query, but I need to present it in a formal report. I have created a query that says this:

    Jan: Sum(IIf([Posting Period]=1,[Amt in GRP],Null))

    for every month, then I use that in a report to show the monthly trend. The problem I have now is it will list the same vendor 9 times because the expense amount is in a different column. It looks like this:

    JAN FEB MAR
    Vendor X 10
    Vendor X 15
    Vendor X 12

    I need it to look like this:

    JAN FEB MAR
    Vendor X 10 15 12

    Any help would be appreciated!!

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    "I know this can be done using a crosstab query, but I need to present it in a formal report."

    Make the crosstab query and throw it into another query. Save the new query and base a report on it. You're done =]

  3. #3
    bmschaeffer is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2011
    Posts
    24
    Thanks for the suggestion!

    When I try to use that query as the base for my report it freezes the report builder. Have you had problems in the past using this method?

  4. #4
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    It may be that since the query is being run on the fly, it is taking a while to populate the report. Instead of leaving the query that the crosstab is in as a SELECT query, change to a MAKE TABLE query instead, then bind the report to the table. If that is also freezing, then there is an issue with the database.

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

Similar Threads

  1. Query for Forecast Trend
    By cacosta35 in forum Access
    Replies: 0
    Last Post: 07-07-2011, 12:28 PM
  2. Monthly Programming
    By ekaragew in forum Programming
    Replies: 1
    Last Post: 06-21-2011, 05:37 PM
  3. Is weekly / monthly automation possible?
    By 10 Gauge in forum Access
    Replies: 4
    Last Post: 03-17-2011, 07:23 AM
  4. Query + monthly report
    By tareksul in forum Reports
    Replies: 3
    Last Post: 12-19-2010, 01:09 PM
  5. Replies: 7
    Last Post: 12-14-2009, 04:49 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