Advertisement

07.15.2008 at 09:35AM PDT, ID: 23566748
[x]
Attachment Details

Dynamic columns in report based on crosstab query

Asked by Michaelj42 in Access Reports, Microsoft Access Database, Access Coding/Macros

Tags: , , ,

Hello All,

I need to generate a monthly report that shows billed amounts.

I wrote a crosstab query that will show me customers as rows and invoice dates as columns. I was able to write a report that shows this query with totals etc.  (see code)

I want to accomplish two things,

1. Have the query only show invoice dates from a date range (have user pick a month or date range?).
2. I want my report to automatically add every date column from that month. Possible?

Go gently on me as I'm out of my depth here...
Many thanks for your help.Start Free Trial
1:
2:
3:
4:
5:
TRANSFORM Sum([Job Log].InvoiceAmount) AS SumOfInvoiceAmount
SELECT [Job Log].CUSTOMER, Sum([Job Log].InvoiceAmount) AS [Total Of InvoiceAmount]
FROM [Job Log]
GROUP BY [Job Log].CUSTOMER
PIVOT Format([InvoiceDate],"Short Date");
 
 
[+][-]07.15.2008 at 10:57AM PDT, ID: 22009206

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.15.2008 at 11:16AM PDT, ID: 22009385

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 11:46AM PDT, ID: 22009723

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 12:01PM PDT, ID: 22009890

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 12:34PM PDT, ID: 22010224

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 12:38PM PDT, ID: 22010242

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 12:45PM PDT, ID: 22010325

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 01:05PM PDT, ID: 22010523

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 01:29PM PDT, ID: 22010753

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 01:50PM PDT, ID: 22010996

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 02:00PM PDT, ID: 22011101

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 02:13PM PDT, ID: 22011187

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 10:12AM PDT, ID: 22018001

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.16.2008 at 11:31AM PDT, ID: 22018765

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Reports, Microsoft Access Database, Access Coding/Macros
Tags: Microsoft, Office, 2007, Access
Sign Up Now!
Solution Provided By: Michaelj42
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.24.2008 at 01:50AM PDT, ID: 22077124

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628