Hi,
Having a complete memory block.
I have a report where I have based it upon the salesman we have.
Each salesman has his unique id of ‘salesid’ in the table and other tables I want to query.
In the report, I would like to use a dcount function to count how many appoinments each salesman has booked.
I have a blank field in the report where I would like to display the number of appointments that salesman has booked. The table I need to query is called ‘tblValuations’, where I need to query where the salesid equals the line on the report and also the date each record was created (createvaluation) is today.
I have tried to use dcount(“*”,”tblValuations”,SalesID= & me.salesid & ” and tblValuations!CreateValuation=” & date()-1)
However this does not work.
Any ideas?