Pulling data from Report to look up table value

P

Patrick Graham

I have a form that has the Advisors Name and
AdvisorCompanyID, I would like the report to use the
AdvisorCompany ID fromt he form to look up the
AdvisorCompanyName from a table.

Can I do this do I need to us DLOOKUP <--- just thought
of this
 
M

Marshall Barton

Patrick said:
I have a form that has the Advisors Name and
AdvisorCompanyID, I would like the report to use the
AdvisorCompany ID fromt he form to look up the
AdvisorCompanyName from a table.

Can I do this do I need to us DLOOKUP <--- just thought
of this


That's one way.

=DLookup("AdvisorCompanyName", "tableadvisors",
"AdvisorCompanyID = " & Forms!theform.advisorIDtextbox)
 
Top