use of commas in e-mail function

L

Lauren B.

I have prompts written throughout my forms that result in the opening of an
e-mail with selected language in the text. As part of the language, I have
fields that automatically populate the e-mail for example:

My e-mail reads: Provider 1 is active.
VBA code reads: [Provider 1] & " is active.",

I need my e-mail to read: Provider 1, State, is active.

I have a State field on my form, and I understand that I need to incorporate
it in my code; however, I do not know how to write the code so that there is
a comma immediately after "Provider 1" and "State"

How do I indicate commas in the text of the e-mail without causing an error
in the code?

Thank you in advance for any assistance.

LB
 
A

Andi Mayer

I have prompts written throughout my forms that result in the opening of an
e-mail with selected language in the text. As part of the language, I have
fields that automatically populate the e-mail for example:

My e-mail reads: Provider 1 is active.
VBA code reads: [Provider 1] & " is active.",

I need my e-mail to read: Provider 1, State, is active.
[Provider 1] &"," &[state] & " is active.",
 

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