Hello,
I am using a VB.net app. to connect to an MS Access DB. I am attempting to do a total count of a "Item" field that will have several values. For example:
C10000056
C10000057
C10000058
D10000057
F10000057
R10000057
So on my report I need to total all of the C1's, D1's, F1's, etc. I have used the "expert" and all methods I have tried have come up with "The formula has an error do you still want to save it?" or similar.
Here is one of many methods I have tried...
I am new to Crystal Reports but have had no problems creating standard reports up to this point.
To recap, I simply want to add the total of all C1's, D1's etc. in the Item field. I don't need to use code, I will be perfectly happy if there is a rather simple and/or obvious solution that I have missed.
Thanks in advance for any help @ all.
Chuck
I am using a VB.net app. to connect to an MS Access DB. I am attempting to do a total count of a "Item" field that will have several values. For example:
C10000056
C10000057
C10000058
D10000057
F10000057
R10000057
So on my report I need to total all of the C1's, D1's, F1's, etc. I have used the "expert" and all methods I have tried have come up with "The formula has an error do you still want to save it?" or similar.
Here is one of many methods I have tried...
Code:
local numberVar total := 0;
if {Inventory.Item} startswith "C1000051" then
total := total + 1;
I am new to Crystal Reports but have had no problems creating standard reports up to this point.
To recap, I simply want to add the total of all C1's, D1's etc. in the Item field. I don't need to use code, I will be perfectly happy if there is a rather simple and/or obvious solution that I have missed.
Thanks in advance for any help @ all.
Chuck