Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 14th, 2006, 12:38 PM
Registered User
 
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default CrossTabs and parameters.

Please help, I have a 2 crosstab queries which I need to join to make one query with both results. They work fine seperately and has a parameter to show only results for a required month. All my data is in one table which includes a date field. I cannot for the life of me get the both the crosstab into one query when the paremeter is set on the crosstabs. Without the paremeters I can join, but then I do join the crosstabs with out the paremeters set, I cannot add the paremter to the joint crosstab query because the date field was removed from the crosstabs paremeter.

PARAMETERS [Enter Month] Text ( 255 );
TRANSFORM Sum(APPROACH.AMOUNT) AS SumOfAMOUNT
SELECT APPROACH.AO, Sum(APPROACH.AMOUNT) AS SumOfAMOUNT1, Count(APPROACH.LOAN_TYPE) AS CountOfLOAN_TYPE
FROM APPROACH
WHERE (((Format([Date_Field],"mmm"))=[Enter Month]))
GROUP BY APPROACH.AO
PIVOT APPROACH.LOAN_TYPE;


PARAMETERS [Enter Month] Text ( 255 );
TRANSFORM Count(APPROACH.AMOUNT) AS CountOfAMOUNT
SELECT APPROACH.AO, Count(APPROACH.AMOUNT) AS [Total Of AMOUNT]
FROM APPROACH
WHERE (((Format([Date_Field],"mmm"))=[Enter Month]))
GROUP BY APPROACH.AO
PIVOT APPROACH.LOAN_TYPE;


These are my results from the both crosstabs. Please help my join them and be able to still use the paremeter query for the date.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Parameters dcct84 C# 6 September 27th, 2007 05:26 PM
parameters dpkbahuguna ASP.NET 1.x and 2.0 Application Design 0 April 3rd, 2007 07:27 AM
Parameters Dharam80 Access 3 August 19th, 2005 01:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.