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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Summing two different queries in a Crosstab

Status
Not open for further replies.

shaleen7

MIS
Jun 23, 2002
188
0
0
US
I have two queries with different criteria but the data is coming from the same tables. I want to combine the data results in a crosstab query.

Criteria one:
not ({ZIP} in ["08824", "98236"]) and
not ({STATE} in ["NY", "NJ"]) and
not isnull({DELIVERYDATE}) and not isnull ({companyorderDATE})


Criteria TWO:
not ({ZIP} in ["53336", "98236"]) and
not ({STATE} in ["NY", "NJ"]) and
isnull({customerDELIVERYDATE})and isnull({companyorderDATE})

I already have a running total set up in a crosstab using criteria 1. I want to add the results of Criteria TWO.
Is this possible?








 
Hello

Your Question:
have two queries with different criteria but the data is coming from the same tables. I want to combine the data results in a crosstab query.

My Response:
I find CrossTabs very limiting so I do all my work in the SQL. As a result, redo your 2 SQL Queries by combining them into one Query by using either a UNION or a SubQuery with the main Query.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top