How combine 5 test fields together separate with a comma and space

I have a form with 5 fields.  One or all 5 may have text data in them.  Then on the form I also have a field that I want to combined the data from the 5 (or less) field into separate with a comma and a space.

So if for example field 1 has "Green", field 2 has "Orange", and field 3 has "Purple", then the combined field would read...  "Green, Orange, Purple"

How can I do this so that the combined field is updated after each of the other fields are updated?
SteveL13Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Amit KumarCommented:
Create a query and add below formula in new field. It will give you result as you required

Color: [Field1] & " ," & [Field2] & " ," & [Field3]
Dale FyeOwner, Developing Solutions LLCCommented:
I would use:

=Mid((", " + [Field1]) & (", " + [Field2]) & (", " + [Field3]) & (", " + [Field4]) & (", " + [Field5]), 3)

By using the + to concatenate the ", " to a field value, you ensure that the value inside each of those sets of parenthesis will return a NULL if the [Field#] is NULL).  This will ensure that you don't have any extra commas in the output.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.