Help with function in string
- by draice
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?