H
Han
I have a query-based report. The query contains several numeric IDs, which
reference a table containing contacts.
Exp.
PlumberID = 159
PainterID = 135
CarpenterID = 145
For each text box, I would like to display the contact's first and last name
instead of the ugly numeric ID. I have attempted to add the following query
to the text box's Control Source:
=(SELECT [Contacts].[FirstName] & " " + [Contacts].[LastName] AS PlumberName
FROM Contacts WHERE ContactID=PlumberID)
This works as expected when used directly, but displays a #Name? in the text
box.
Can someone clue me in on the problem?
Thanks in advance,
Han
reference a table containing contacts.
Exp.
PlumberID = 159
PainterID = 135
CarpenterID = 145
For each text box, I would like to display the contact's first and last name
instead of the ugly numeric ID. I have attempted to add the following query
to the text box's Control Source:
=(SELECT [Contacts].[FirstName] & " " + [Contacts].[LastName] AS PlumberName
FROM Contacts WHERE ContactID=PlumberID)
This works as expected when used directly, but displays a #Name? in the text
box.
Can someone clue me in on the problem?
Thanks in advance,
Han