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!

Crosstab Query

Status
Not open for further replies.

cbearden

Technical User
May 17, 2004
80
US
I am having trouble setting up a query.

I have created a query to grab records containing info from 2 tables. The following is what is that query:

curGcost
curGrefund
curSCcost
curSCrefund
curCLcost
curCLrefund
dtmAll

Expressions:
Total Cost: Sum([curGcost]+[curSCcost]+[curCLcost])
'this calculates the total Cost
Total Refund: Sum([curGrefund]+[curSCrefund]+[curCLrefund])
'this calculates the total Refund
Sum([dtmGrec]-[dtmSent])
Sum([dtmSCrec]-[dtmSent])
Sum([dtmCLrec]-[dtmSent])
Sum([dtmOrec]-[dtmSent])
'The following 4 expressions calculates the days between request for refund and received refund. I am trying to get only those records that are >45 days.


I'm trying to get all Gcost, Grefund, SCcost, SCrefund, CLcost, CLrefund each totaled. So I should have 6 different totals. Also, I was trying to get the total for all COST and all REFUND(which the first 2 expressions do.)
I am having trouble setting up a crosstab query. COuld someone help?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top