Hi guys,
I'm not a newbie when it comes to MS Access, but I can't sort it out. Can you help me?
My report is based on a query that returns 0, 1, 2,... 10 or more records. The report displays all records (they are called batches) and below it displays their number (e.g. 5 records in total). I count the number of returned records using a field that value is "=COUNT (BATCH)". Everything works fine when there are 1, 2 or more batches. But when there is no batches the report displays "#Error" (or sth like that) instead of 0". How can COUNT function give an error instead of zero? What do I do wrong? I tried to experiment with Nz, but no luck. Anybody knows what I should do? Thank you for any help!
I'm not a newbie when it comes to MS Access, but I can't sort it out. Can you help me?
My report is based on a query that returns 0, 1, 2,... 10 or more records. The report displays all records (they are called batches) and below it displays their number (e.g. 5 records in total). I count the number of returned records using a field that value is "=COUNT (BATCH)". Everything works fine when there are 1, 2 or more batches. But when there is no batches the report displays "#Error" (or sth like that) instead of 0". How can COUNT function give an error instead of zero? What do I do wrong? I tried to experiment with Nz, but no luck. Anybody knows what I should do? Thank you for any help!
Comment