Help with function in string
Posted
by draice
on Stack Overflow
See other posts from Stack Overflow
or by draice
Published on 2010-03-08T15:53:25Z
Indexed on
2010/03/08
16:06 UTC
Read the original article
Hit count: 422
I have a variable, emailBody, which is set to a string stored in a database
emailBody = DLookup("emailBody", "listAdditions", "Id = " & itemType)
The string icludes an IIf function (which includes a dlookup function).
?emailBody
The new commodity is" & Iif(dlookup("IsVague", "CommodityType", "Description= " & newItem)="1", "vague.", "not vague.")
How do I properly format the string so that the function will be evaluated and the result stored in the string?
© Stack Overflow or respective owner