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

Returning text totals..

Status
Not open for further replies.

Ben6550

Technical User
Jan 8, 2004
16
GB
I want to run a query which extracts data from a table and returns a total, the data is text form and i seem to be unable to get a total for the extracted records. Any ideas?
 
Ben,


Can you provide a sample of your data and what you wish the desired output to be?


Thanks,


Steve
 
This is the query using the wizard produced, but i recieve is an error message saying query is too complex to be evaluated:

SELECT interview.Position
FROM interview
GROUP BY interview.Position
HAVING (((Count(interview.[Interview Date])) Between [Start Date] And [finish Date]) AND ((interview.Position)="homephone"));

Think it's because of the criteria. Is there a solution to getting the totals?
 
Ben,

Try doing your count on the homephone field.
The value should be the same as counting the date field but will hopefully reduce the amount of complexity in the query.


The only other way would be to build one query that has the results which are passed to a second query that does the grouping and count.


Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top