Hi, I've been reading about dcount for a while now and I cant seem to find a solution to my issues.
I have a report ,rptdeliveryreport, that uses a query ,qrydeliveryreport, to filter on user input dates.
I have duplicate invoiceno numbers because there are multiple line items on one invoice.
I want to count the unique Invoice# to get a total.
=DCount("VisionProNo","qtyDeliveryReport",)
I put that in a control source for a text box on the Report but it returns #error
If I try to use the table rather then a query it works fine. Why doesn't it work with the query?
I have a report ,rptdeliveryreport, that uses a query ,qrydeliveryreport, to filter on user input dates.
I have duplicate invoiceno numbers because there are multiple line items on one invoice.
I want to count the unique Invoice# to get a total.
=DCount("VisionProNo","qtyDeliveryReport",)
I put that in a control source for a text box on the Report but it returns #error
If I try to use the table rather then a query it works fine. Why doesn't it work with the query?
Last edited: