B
BruceM
I have a module containing a public function named FaxText that evaluates
vendor data regarding CertificateType, ExpirationDate, UpdateRequested, and
so forth. If a certificate's expiration date is coming due, the code
generates an integer (intStatus) of 1. If an update has been requested and
the expiration date has passed, intStatus is 2. There are maybe ten
possible intStatus numbers.
A Select Case statement assigns text:
Select Case intStatus
Case 1
FaxText = strDueSoon
Case 2
FaxText = strOverdue
End Select
The text strings may be several lines long (on the report that is intended
as a fax to be sent to the vendor), along the lines of:
strDueSoon = "Your " & [CertificateType] & " will expire on " &
[ExpirationDate] & ". Please send an updated blah, blah."
On the report (fax) I have a text box that has the FaxText function as its
control source. It works as intended.
Right now I have the text strings (strDueSoon, etc.) in the function itself.
They will add up to maybe 3000 characters, including spaces.
Is there a better choice than storing the text strings in the function?
Even if this amount of text is reasonable in a function, there may come a
project in which I will need a considerably larger amount.
vendor data regarding CertificateType, ExpirationDate, UpdateRequested, and
so forth. If a certificate's expiration date is coming due, the code
generates an integer (intStatus) of 1. If an update has been requested and
the expiration date has passed, intStatus is 2. There are maybe ten
possible intStatus numbers.
A Select Case statement assigns text:
Select Case intStatus
Case 1
FaxText = strDueSoon
Case 2
FaxText = strOverdue
End Select
The text strings may be several lines long (on the report that is intended
as a fax to be sent to the vendor), along the lines of:
strDueSoon = "Your " & [CertificateType] & " will expire on " &
[ExpirationDate] & ". Please send an updated blah, blah."
On the report (fax) I have a text box that has the FaxText function as its
control source. It works as intended.
Right now I have the text strings (strDueSoon, etc.) in the function itself.
They will add up to maybe 3000 characters, including spaces.
Is there a better choice than storing the text strings in the function?
Even if this amount of text is reasonable in a function, there may come a
project in which I will need a considerably larger amount.