Deirdre Marie
Access in Excess
- Local time
- Today, 05:43
- Joined
- Sep 17, 2001
- Messages
- 34
Good afternoon~
I have a table which contains information downloaded from an AS400 system. From this table I've created a query for the information I wish to use in a future report.
One of the fields is called Canteen and contains varied entries. There are 3 Types of Canteens, AR SP and CH. Unfortunately the entries in the field Canteen arent always labelled as such. It can be determined that any entry which is "AR*" is an AR Canteen. Any entry which is "SP*" is a SP Canteen, and any entry which does NOT start with AR* or SP* is a CH Canteen.
Now, what I need my query to do is look at the Field Canteen and COUNT the number of AR, SP, and CH Canteens. I tried creating new entries in the query using the COUNT function along with LIKE. I've also tried using IF to return a True/False value. Unfortunately, my skills have not progressed in ACCESS to do as I want and all my attempts have been futile.
Any assistance is greatly appreciated.
I have a table which contains information downloaded from an AS400 system. From this table I've created a query for the information I wish to use in a future report.
One of the fields is called Canteen and contains varied entries. There are 3 Types of Canteens, AR SP and CH. Unfortunately the entries in the field Canteen arent always labelled as such. It can be determined that any entry which is "AR*" is an AR Canteen. Any entry which is "SP*" is a SP Canteen, and any entry which does NOT start with AR* or SP* is a CH Canteen.
Now, what I need my query to do is look at the Field Canteen and COUNT the number of AR, SP, and CH Canteens. I tried creating new entries in the query using the COUNT function along with LIKE. I've also tried using IF to return a True/False value. Unfortunately, my skills have not progressed in ACCESS to do as I want and all my attempts have been futile.
Any assistance is greatly appreciated.