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!

Monthly Display On Crosstab

Status
Not open for further replies.

vise

Technical User
Jul 31, 2003
143
US
Hi all,
I have a crosstab query working with the following fields: Line Number, Shift, and # or errors. I want to add a time field so that it display those values monthly. Any ideas?
Thanks,
-vise
 
Add your time field to the crosstab and calc on it like:
Format([YourDateTime],"yyyymm")
Then use it as a row or column heading depending on what you want.

Duane
MS Access MVP
 
I get the following Error message when i put that in my crosstab.
Data type mismatch in the criteria expression.
.. what does this mean?

I entered the following
Field: Time
Table: Master
Total: where
Criteria:
Format([YourDateTime],"yyyymm")
.. is that correct?
Thanks.
 
The expression goes in the Field, not criteria.
YrMth:Format([Time],"yyyymm")

BTW: Time is not a good name for a field since it is a function name. I would rather maintain one thread on this so please use the thread in REPORTS.

Duane
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top