Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rewrite Crosstab Query

Status
Not open for further replies.

georgesOne

Technical User
Jul 2, 2004
176
JP
Dear All:
I have a webdb with two queries which are are obviously not web compatible (due to the first crosstab query):
1.
Code:
TRANSFORM Count(tblDHighLow.DHighLowID) AS DHighLowIDOfCount
SELECT tblDHighLow.Update, tblDHighLow.Division, tblDHighLow.Project
FROM tblDHighLow
GROUP BY tblDHighLow.Update, tblDHighLow.Division, tblDHighLow.Project, tblDHighLow.ProjectNo
ORDER BY tblDHighLow.ProjectNo
PIVOT tblDHighLow.Highlight;
2.
Code:
SELECT tblMreports.Update, tblMreports.Team, tblMreports.Project, 
[tblMreports].[DirHC]+[tblMreports].[InDirHC] AS HeadCount, 
qryDActSub.x AS Highlight, qryDActSub.[<>] AS Lowlight
FROM tblMreports LEFT JOIN qryDActSub ON (tblMreports.Project = qryDActSub.Project) 
AND (tblMreports.Update = qryDActSub.Update)
WHERE (((tblMreports.Update)=#2/20/2014#) 
AND ((tblMreports.Division)="ICM-L") AND ((tblMreports.Active)=True) AND ((tblMreports.Deleted)=False))
ORDER BY tblMreports.Update DESC , tblMreports.ProjectNo;
Is there any other way to generate a web compatible query?
Thanks for any hint, georges
 
Why can't the second query be "web compatible"? If the first query is aryDActSub then there might be an issue but you don't say how the two are related.

Are there always a static list of possible Highlight values? For instance, if this was Months or Days, it would be static.

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top