Fullname text string creation.

D

DPCpresto

I need help on the proper syntax for concatenating names. Specifically, I need to create a [Fullname] field from [Firstname], [Middlename], [Lastname]. I can do that easily enough, but seem to be lost as to how best to strip out the extra spaces if there is no [Middlename]. So really what I want is the regular spacing in the [Fullname] field whether there is a [Middlename] or not. Thanks for your ideas....
 
D

Dave - Freedonia

You could try:
IIF(IsNull([Middlename]),[Firstname] & " " & [Lastname],[Firstname] & "
" & [Middlename] & " " & [Lastname])

HTH,
Dave
 

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