A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Reference Main Report Crosstab Query from Subreport



 
 
Thread Tools Display Modes
  #1  
Old June 7th, 2004, 11:42 PM
blinton25
external usenet poster
 
Posts: n/a
Default Reference Main Report Crosstab Query from Subreport

Hi,

I have the following crosstab query which I use to
generate my Mainreport:

SELECT regionorder, Regions3, 1 As Quarter, January as
A, February as B, March as C, RegionTotal FROM
RegionofResidenceCrosstab
UNION ALL
SELECT regionorder, Regions3, 2 As Quarter, April, May,
June,RegionTotal FROM RegionofResidenceCrosstab

where A, B and C are displayed on the mainreport.

I wish to display regiontotal (the total of A, B and C)
on a SubReport, but to do this currently I have to run
the query again in my subreport.

Is there a way to reference the Crosstab query used in
the main report from the subreport, so the query is run
only once?
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:19 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.