Hi,
I'm sure there must be quite an easy solution to this, but i cant find it anywhere.
I have 2 text boxes on a form with the following in the control source:
=DLookUp("[Phone Call]","qryCallsCount")
=DLookUp("[Visit]","qryCallsCount")
The qryCallsCount is a crosstab query that returns the counts of the Phone Calls and Visits made to a particular customer.
The problem is that not every customer has been visited/called, so they do not have the field created in the crosstab query, therefore the Dlookup can't find the field and returns a #Name error.
Instead of displaying this error, i would like it to be blank.
I looked into using NZ, but that seems to be only for Null values in existing fields. Is there a way to hide, or display blank ("") if there is an error?
Something similat to the IfError function in Excel 2007?
All help much appreciated.
Dave
I'm sure there must be quite an easy solution to this, but i cant find it anywhere.
I have 2 text boxes on a form with the following in the control source:
=DLookUp("[Phone Call]","qryCallsCount")
=DLookUp("[Visit]","qryCallsCount")
The qryCallsCount is a crosstab query that returns the counts of the Phone Calls and Visits made to a particular customer.
The problem is that not every customer has been visited/called, so they do not have the field created in the crosstab query, therefore the Dlookup can't find the field and returns a #Name error.
Instead of displaying this error, i would like it to be blank.
I looked into using NZ, but that seems to be only for Null values in existing fields. Is there a way to hide, or display blank ("") if there is an error?
Something similat to the IfError function in Excel 2007?
All help much appreciated.
Dave