#Error from dlookup

  • Thread starter Thread starter Robert
  • Start date Start date
R

Robert

I have a dLookup in a report which returns a field value from a table. This
works fine as long as there's a value in the field. But when a record has a
null for the value of that field, it says #Error on the report. How can I
get rid of the #Error? Null is an alowable value for this field. I tried
using NZ((dLookup...),0) but that didn't do anything.

I'm using Access 2002

Robert
 
Exactly what is your DLookup statement? (Copy-and-paste into your reply so
that we can see)
 
I realize I should have tested the value which I send to the dlookup.
That's where the problem was. Thanks for your help.
 
Back
Top