Trying to return the concatenated value of two fields using a DLookUp

atrium

Registered User.
Local time
Today, 20:27
Joined
May 13, 2014
Messages
348
PersonResp: DLookUp( "RTrim([Users].[FirstName] & "" "" & [Users].[LastName])","Users","UserId = " & [Matters].[RespPerson])

PersonResp is a field in my query. I keep on getting an invalid syntax message

Any help would be appreciated
 
Maybe you could try it this way:
Code:
PersonResp: DLookup("[FirstName] & ' ' & [LastName]", "Users", "UserId=" & [RespPerson])
 
Dlookups have no place in queries.

Instead you bring in Users to your query, link it appropriately (UserID to RespPerson] and then just reference the fields you want.

PersonResp: [FirstName] & " " & [LastName]
 

Users who are viewing this thread

Back
Top Bottom