drisconsult
Drisconsult
- Local time
- Today, 21:24
- Joined
- Mar 31, 2004
- Messages
- 125
I have a query with 2 fields.
The first is called:TypeOfMedia: Left([MediaID],1)
Grouped BY
Result
C
D
G
The second is called: CountOfProducts: Count(*)
Expression
Result:
1
15
1
This query has counted the number of CDs, DVDs and Games entered. The first letter of the MediaID fields indicates what type of product it is. A typical DVD entry would be: D2387
I now need to implement the totals on a form with other fields such as the name of the DVD.
The other fields are:
Ptitle: text
Type: text
Cost: currency
Penalty: currency
The trouble I am having is to successfully implement a count procedure where I can have three fields each showing how many of the various products there are, open at the same time.
Would any of my esteemed colleagues out there have a solution to this problem?
Regards
Terence
The first is called:TypeOfMedia: Left([MediaID],1)
Grouped BY
Result
C
D
G
The second is called: CountOfProducts: Count(*)
Expression
Result:
1
15
1
This query has counted the number of CDs, DVDs and Games entered. The first letter of the MediaID fields indicates what type of product it is. A typical DVD entry would be: D2387
I now need to implement the totals on a form with other fields such as the name of the DVD.
The other fields are:
Ptitle: text
Type: text
Cost: currency
Penalty: currency
The trouble I am having is to successfully implement a count procedure where I can have three fields each showing how many of the various products there are, open at the same time.
Would any of my esteemed colleagues out there have a solution to this problem?
Regards
Terence