Re: Select Columns from Crosstab for Report - HELP PLEASE!!!
From: Duane Hookom (duanehookom_at_nospamhotmail.com)
Date: 02/24/04
- Next message: norman: "Re: Calculating VAT"
- Previous message: lab: "Re: How to open the Report Wizard using code"
- In reply to: Donna: "Select Columns from Crosstab for Report - HELP PLEASE!!!"
- Next in thread: Donna: "Re: Select Columns from Crosstab for Report - HELP PLEASE!!!"
- Reply: Donna: "Re: Select Columns from Crosstab for Report - HELP PLEASE!!!"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 24 Feb 2004 08:52:44 -0600
If you only want to display one month, then why are you using a crosstab.
Just set the criteria in the query to the month chosen by the user.
--
Duane Hookom
Microsoft Access MVP
Please direct any questions to News Groups
"Donna" <anonymous@discussions.microsoft.com> wrote in message
news:A43AF1EF-971B-48DA-9A7B-74027141AAE8@microsoft.com...
> Help! I am a total novice at Access - surprised I've gotten this far by
myself, but I've officially hit the wall on this one....
> I have a crosstab query that shows Revenue by Month and totals for
clients. I need to build a report showing Client Name, Project Description,
Total Revenue and Revenue for current month. (With YTD Revenue, Month's
Revenue and Month Forecast in Header)
> I can get the Client, Project Descr and Total Revenue, but am at a total
loss on how to pull only the current month's revenue.
> In the Header I've gotten the YTD Rev and Forecast for current month -
(use a form for Month, pulls from another query)
>
> Question: would I need to write a SQL SELECT - But HOW!!!!! or is there a
better way
>
> Cross tab Query:
> SELECT Totals.ClientName, tblProjects.ProjectDesc, Totals.Booked AS
TotalRevenue
> FROM ((Totals INNER JOIN tblClients ON Totals.ClientName =
tblClients.ClientName) INNER JOIN tblProjects ON tblClients.ClientID =
tblProjects.ClientID) INNER JOIN (tblPhase INNER JOIN tblBilling ON
tblPhase.PhaseID = tblBilling.PhaseID) ON tblProjects.ProjectID =
tblPhase.ProjectID
> WHERE (((Totals.Booked) Is Not Null))
> GROUP BY Totals.ClientName, tblProjects.ProjectDesc, Totals.Booked
> ORDER BY Totals.Booked DESC
> PIVOT Format([MoBilled],"mmm") In
("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
>
> Report has:
> ClientName; ProjectDesc; TotalRevenue; and then unbound field - how do I
link this to the crosstab column based on the month selected from
[Forms]![frmMoSelect![Month]
- Next message: norman: "Re: Calculating VAT"
- Previous message: lab: "Re: How to open the Report Wizard using code"
- In reply to: Donna: "Select Columns from Crosstab for Report - HELP PLEASE!!!"
- Next in thread: Donna: "Re: Select Columns from Crosstab for Report - HELP PLEASE!!!"
- Reply: Donna: "Re: Select Columns from Crosstab for Report - HELP PLEASE!!!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading