Query to display three names

Slim Shamble

Registered User.
Local time
Today, 17:20
Joined
Jun 3, 2016
Messages
29
Hi

I have 3 textboxs for first name, middle name and last name. And I want to display the names entered in this textbox. I try using this code below but its shows only the first and the last name.
Full name: IIF(IsNull([First Name],IIF([First Name]),[First Name]), IIF(IsNull([First Name]),[Last Name],[First Name] & " " & [Last Name]))

But this code only display just the first and last name. How do I get it to work also for middle name. That is to display First, Middle and Last Name.
 
select [FIRST] & " " & IIF(iSNULL([MIDDLE]),"", [MIDDLE] & " ") & [LAST] AS NAME FROM TABLE
 
Didn't work. Got an error saying

The syntax of the subquery in the expression is incorrect, check the subquery's syntax and enclose the subquery in parentheses. I don't understand that
 
its simple as this:

([First Name] + " ") & ([Middle Name] + " ") & [Last Name]
 

Users who are viewing this thread

Back
Top Bottom