B
BruceM
I have a database in which a fax message is built from strings. Some of the
strings depend on other strings. For instance (vairable in uppercase):
Your FISHING PERMIT expired in JULY
JULY is derived from a field ExpDate. FISHING PERMIT is from [PermitType].
If I define the string variables thus:
Dim strPermitType as
strPermitType = [PermitType]
strMsg = "Your " & strPermitType & " expired in " & strMonth
strMonth = Format([ExpDate],"mmmm")
I am left with strMsg:
Your FISHING PERMIT expired in
If I put strMonth before strMsg, all is well. However, my actual situation
is more complex (and is not about fishing permits), with about 20
interdependent strings, so I am hoping there is a way around the problems
(omissions) that result if they are in the wrong order.
strings depend on other strings. For instance (vairable in uppercase):
Your FISHING PERMIT expired in JULY
JULY is derived from a field ExpDate. FISHING PERMIT is from [PermitType].
If I define the string variables thus:
Dim strPermitType as
strPermitType = [PermitType]
strMsg = "Your " & strPermitType & " expired in " & strMonth
strMonth = Format([ExpDate],"mmmm")
I am left with strMsg:
Your FISHING PERMIT expired in
If I put strMonth before strMsg, all is well. However, my actual situation
is more complex (and is not about fishing permits), with about 20
interdependent strings, so I am hoping there is a way around the problems
(omissions) that result if they are in the wrong order.