I have a problem with a report where I am trying to count the detail records in a report but exclude both null and zero values.
I have looked through the forums and found a couple of answers but they do not work for me. I am using a ADP project and using MSDE (Free SQL) as the backend.
If I use the command
=Count(*) (Works counts all records)
=Count(d3force) (Works excludes nulls but includes zero)
Therefore I want something that will exclude 0
I have tried using the follwing to count the zero records.
=Sum(Abs([d3force])=0)
=Sum(IIF([d3force]=0, 1, 0)
(The syntax above may not be correct but I don't have the code to hand so I just made up examples so you would get the idea). I have pretty much just copied and pasted examples directly from the forum and changed a single field name.
These just give me an error 2589 and state incorrect syntax and the report won't run at all.
Help just gives me a blank screen for this error number.
I am completely stuck now and have nothing left I can try
Has anybody got any ideas.
I have looked through the forums and found a couple of answers but they do not work for me. I am using a ADP project and using MSDE (Free SQL) as the backend.
If I use the command
=Count(*) (Works counts all records)
=Count(d3force) (Works excludes nulls but includes zero)
Therefore I want something that will exclude 0
I have tried using the follwing to count the zero records.
=Sum(Abs([d3force])=0)
=Sum(IIF([d3force]=0, 1, 0)
(The syntax above may not be correct but I don't have the code to hand so I just made up examples so you would get the idea). I have pretty much just copied and pasted examples directly from the forum and changed a single field name.
These just give me an error 2589 and state incorrect syntax and the report won't run at all.
Help just gives me a blank screen for this error number.
I am completely stuck now and have nothing left I can try
Has anybody got any ideas.