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

data type mismatch in criteria expression

Status
Not open for further replies.

cochise

Technical User
Mar 27, 2001
171
US
Fields: sales, date, invoice, department

I have a query displaying total sales for each department by month. I also have made a Grand_Total query. I have subsequently been able to get a % of total sales by making a field: Sum ( [Sales]/[GrandTotal]) using Expression under Total. I also can get a count on invoices by importing the field in the query and setting the Total to count.

I cannot seem to get a % of # of invoices compared to Total# of invoices. Any suggestions?
 
You should create an expression dividing Total Invoices in your department query by your Total Invoices in your Grand_Totals query.
 
Are you saying that I need to have 3 queries?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top