G
Guest
I need to send faxes and other reports to our vendors. A number of phrases
appear in several different reports. The choice of phrases is dependent on
things like whether an expiration date had passed or not, so I have
constructed a query with a calculated field containing a nested IIf
statement, along the lines of:
IIf([ProductType] = "Supply" And [ExpDate] < Date(),"Your survey will be due
soon",IIf([ProductType] = Supply and [ExpDate] > Date(),"Your survey is past
due","Please sign below and return"))
It's more complex than that, with longer phrases that I have shown and with
fields such as the actual expiration date interspersed throughout the
message, but that is the idea. So far it works, but I just had to add
another condition, and seem to have maxed out on the length of the IIf
expression. I would like maybe to have some standard phrases stored in a
table so that I can just refer to something like [ExpDateSoon] in the IIf
statement instead of "Your survey will be due soon", but am unsure how best
to proceed. If each phrase is a separate record I can't think how I would
refer to it.
appear in several different reports. The choice of phrases is dependent on
things like whether an expiration date had passed or not, so I have
constructed a query with a calculated field containing a nested IIf
statement, along the lines of:
IIf([ProductType] = "Supply" And [ExpDate] < Date(),"Your survey will be due
soon",IIf([ProductType] = Supply and [ExpDate] > Date(),"Your survey is past
due","Please sign below and return"))
It's more complex than that, with longer phrases that I have shown and with
fields such as the actual expiration date interspersed throughout the
message, but that is the idea. So far it works, but I just had to add
another condition, and seem to have maxed out on the length of the IIf
expression. I would like maybe to have some standard phrases stored in a
table so that I can just refer to something like [ExpDateSoon] in the IIf
statement instead of "Your survey will be due soon", but am unsure how best
to proceed. If each phrase is a separate record I can't think how I would
refer to it.