I am brand new to access and am writing my first query.
My first column concatenates first name middle initial (if available) and last name. I am using the below expression to return that result.
FullName: [Name_Only]![First Name] & (" "+[Name_Only]![MI]) & (" " & [Name_Only]![Last Name])
(with Name_Only being the name of my table)
That works flawlessly.
In trying to build my next expression I tried to follow the pattern from the expression above but it is not working for me. I am sure I am misunderstanding the basics behind the concatenation process.
What I am trying to express next is a concatenation of multi part job titles. In my table I have a have a field titles "title 1", "title 2", and "title 3". Some people in our organization are just "vice presidents' so they only need one title, but others are Vice President, Managing Director, President of awesomeness. In that case he / she would have Title 1, 2 and 3. I will always need a result from Title 1, but I only need a title 2 if 1 is present and will only need 3 if both 1 and 2 are present.
My concatenation attempt looks like this
FullTitle: [Title, prior exp]![Title 1] & (", "+[Title, prior exp]![Title 2]) & (", "+[Title, prior exp]![Title 3])
(with Title, prior exp being the name of my table)
However this spits out Title 1, Title 2, Title 3 and keeps the commas and extra spaces in even when there is no second or third title. It seems like the + operator isn't picking up the null value and is still returning the ", " by itself.
I have results that look like this (note the red commas at the end).
Vice President, Managing Director, President of awesomeness
Vice President, ,
Managing Director, President of Semi-awesomeness,
I'm sure there is a pretty simple fix. Thanks for your help. I look forward to bugging you guys with lots of other equally simple questions in the days and months ahead![]()