wally buch Posted February 9, 2008 Posted February 9, 2008 I am trying to set up the following situtation. If a field (First Name) is empty, then I want a salutation in a merge field to say "Dear Sir". But if the field (First Name) is not empty, I want it to say "Dear" (First Name) I have tried if empty clauses, but just cant get it to work.
LaRetta Posted February 9, 2008 Posted February 9, 2008 "Dear " & Case ( IsEmpty ( FirstName ) ; "Sir" ; FirstName )
wally buch Posted February 9, 2008 Author Posted February 9, 2008 That did it. I didnt think the case function could be used in this way. Thanks very much for solving my problem.
LaRetta Posted February 9, 2008 Posted February 9, 2008 Uhm, but how do you know it's not a woman? :qwery: Maybe it should be "Dear person to whom I am writing:" Ha ha ah!! ... and you are most welcome!
wally buch Posted February 9, 2008 Author Posted February 9, 2008 I have it as Dear Sir or Madam: the only issue now is getting a colon after the (First Name) field.
LaRetta Posted February 9, 2008 Posted February 9, 2008 I almost put it in automatically ... "Dear " & Case ( IsEmpty ( FirstName ) ; "Sir" ; FirstName ) & ":"
wally buch Posted February 9, 2008 Author Posted February 9, 2008 That works great! You are a great resource.
Recommended Posts
This topic is 6190 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now