Query to show "&" only if second field is not null

Ohi

Joined
Nov 14, 2009
Messages
5
Reaction score
0
Here's my question, and it's a rather simple one, and I'm drawing a total blank. I've been out of the loop with creating databases via access for some time and I'm afraid I've forgotten quite a bit.

What I need to do is this.

Join [Name1] with [Name2] with an & only if name 2 is not null. If it is null, just show the first name.

Example
[Name1] = John Doe, Sr.
[Name2] = Jane Doe

John Doe, Sr & Jane Doe

[Name1] = John Doe, Sr.
[Name2] = (empty)

John Doe, Sr.

Thank you for the assistance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top