rtdc
Registered User.
- Local time
- Today, 18:41
- Joined
- Feb 27, 2007
- Messages
- 55
This is probably a silly question but its Sunday and my brain hurts lol.
I want to get the literal value from a field in code, what I want to do is construct in a memo field a email text with the vba code in so when called in my email module it will act on the code given. E.g. if I type this in the field
“Dear ” & ‘” & SAL & “’ & “. How are you?”
(SAL being what I call the name field in the SQL I am calling to populate email)
when the code is run using sendobject acsendnoobject or using a outlook calling module it will read in the email as
Dear Fred. How are you
Not
“Dear ” & ‘” & SAL & “’ & “. How are you?”
Which is what I am getting
I have requirement to be able to construct emails where the recipients name is used in the email text, these emails will be mail shots so there will be hundreds so the name cannot just be typed in.
Anyone have a clue how to lookup the content of the field and get VBA to use it as its written not just put it in the email body as a string?
I want to get the literal value from a field in code, what I want to do is construct in a memo field a email text with the vba code in so when called in my email module it will act on the code given. E.g. if I type this in the field
“Dear ” & ‘” & SAL & “’ & “. How are you?”
(SAL being what I call the name field in the SQL I am calling to populate email)
when the code is run using sendobject acsendnoobject or using a outlook calling module it will read in the email as
Dear Fred. How are you
Not
“Dear ” & ‘” & SAL & “’ & “. How are you?”
Which is what I am getting
I have requirement to be able to construct emails where the recipients name is used in the email text, these emails will be mail shots so there will be hundreds so the name cannot just be typed in.
Anyone have a clue how to lookup the content of the field and get VBA to use it as its written not just put it in the email body as a string?