#Error from dlookup

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
 
D

Douglas J. Steele

Exactly what is your DLookup statement? (Copy-and-paste into your reply so
that we can see)
 
R

Robert

I realize I should have tested the value which I send to the dlookup.
That's where the problem was. Thanks for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top