Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Crosstab Queries in Reports

Crosstab Queries in Reports

Crosstab Queries in Reports

I have a crosstab query that I have created which basically is a rolling 12 months.  For intstance, if I ran the query today the column headings would be May-01 through May-02.  Next month if I run it, they will be Jun-01 through Jun-02.  I would like to create a report from this query however, I do not want to hard-code in the sources since they will be changing every month.  Is this possible to do?  Any suggestions?

RE: Crosstab Queries in Reports

1. U could use a form to enter report criteria - ask your office assistant - it cover's the whole procedure.
2. use a small piece of code which runs when the report is opened that will use a variable to store the current year.
x will be today's date - employ this variable to work as a relative constant.

RE: Crosstab Queries in Reports

If your have a date dimension - you could use that as a  heading, and format the same to reflect MMM-YY.

Hope this solves the problem.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close