Dlookup

J

JimP

Is it possible to use Dlookup in a field on a report, that uses a field in
the report query for criteria?

i.e. not alter the report query to do the Dlookup.
 
F

fredg

Is it possible to use Dlookup in a field on a report, that uses a field in
the report query for criteria?

i.e. not alter the report query to do the Dlookup.

Without any criteria?
=DLookUp("[FieldName]","QueryName")

With criteria on the [SomeField] as a Number datatype?
=DLookUp("[FieldName]","QueryName","[SomeField] = " &
Me![SomeControl])

With criteria on the [SomeField] as a Text datatype?
=DLookUp("[FieldName]","QueryName","[SomeField] = '" &
Me![SomeControl] & "'")
 

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