Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DLookup and Concatenation...

Status
Not open for further replies.

Rjc8513

Technical User
Feb 12, 2001
140
US
I have a calculated control in a report that does a lookup. Can't seem to get the concatenation right.

=DLookup("[MGR ID] & "- " & [MGR NAME], "tbl MGR LIST", "[MGR ID]="'& [MGR]& "'")

Everything else works okay but can't get the [MGR ID]/[MGR NAME] to work. The result should be, for example, 23- JOHN DOE.

Thanks...
 
Hi!

Try it like this:

=[Mgr] & "- " & =DLookup("[MGR ID], "tbl MGR LIST", "[MGR ID]="'& [MGR]& "'")

If that doesn't work then write a function the do the concatenation and call the function from the query the report is based on. Alternatively, you could call the function from the text box.

hth
Jeff Bridgham
bridgham@purdue.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top