when field empty dont show in email subject

megatronixs

Registered User.
Local time
Tomorrow, 00:22
Joined
Aug 17, 2012
Messages
719
Hi all,

I use email automation that creates an email and uses data from various fields to fill in the email and the email subject.

I have a field that sometimes could be empty. Is it possible to have the title of the field not show up when empty?

This is the code that is part of the email for the subject:
Code:
oMail.Subject = "Missing documents for the client: " & Me.client_name & ", ID code: " & Me.ID_code & "
When there is nothing in the field "ID code" there there should be no "ID code:" in the email subject.

Greetings.
 
oMail.Subject = "Missing documents for the client: " & Me.client_name & (", ID code: " + Me.ID_code)
 
Hi Spikepl,

BIG THANKS, that really worked out :-)

Greetings.
 

Users who are viewing this thread

Back
Top Bottom