Crosstab Query Based on Crosstab??

cokeblue8

Registered User.
Local time
Today, 07:28
Joined
Aug 28, 2007
Messages
38
Hi all, I am utterly unsure if what I want to do is even possible:

I have two crosstab queries, qryRewCOCredit and qryWrapCOCredit which show the changeover (CO) times for the specified machine when they are NOT zero. (all zero entries don't show up).

There are many cases when there is a CO for the Rewinder on a specific day, but not for the Wrapper, and vice versa.

I want to make another crosstab query which performs a calculation. To keep it simple:

If (RewCOCredit>WrapCOCredit) Then
5-RewCOCredit
Else 'WrapCOCredit>RewCOCredit
5-WrapCOCredit

Please help!!!
 

Attachments

Dont believe it can be done since rows and columns are switched. You could use a temporary table to store your crosstab data and query that!
 
hey guus thanks for the reply

i've been mucking around with it, and it seems like i'm getting somewhere- since the crosstabs are based on select queries, i'm seeing if i could do everything with the select queries, and THEN make a big crosstab at the end.
 

Users who are viewing this thread

Back
Top Bottom