Use Dlookup() on report text box

  • Thread starter Thread starter Scott
  • Start date Start date
S

Scott

I have a text box on my report which I want the
RecordSource of it to point to a quary where a certain
field in the query matches a certain field in the record
source of the report, both fields are Numeric, indexed;
could any one provide me the expression how to do that.?


Thanks

Scott
 
Set the control source of the textbox to something like this. You'll need to
modify it for the real names.

=DLookup("[FieldToReturn]", "[QueryName]", "[MatchingFieldName]=" &
[ReportFieldName])
 

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

Similar Threads

Access Dictionary/Field Index 1
DLookup and Nz 0
Report Text box dilemma 4
Format criteria for text field 5
Dlookup 7
Using a Parameter Query in a Report? 2
Why Doesn't This Work 5
Dlookup 1

Back
Top