M
Mark
Hi all,
What would be an efficient way within a function to loop through a recordset
of distinct text values (record 1 = text1, record 2 = text2, etc.) with the
result displayed as follows:
If only one record:
fncMyFunction = "text1." (that's text1 followed by a period)
If multiple records and rst.recordcount = n:
fncMyFunction = "text1, text2, ... , and text-n." (commas separate each
record except for the last which is preceded with the word "and" and is
followed by a period).
[the function produces a string which can be incorporated elsewhere]
Thanks for any advice.
Mark
What would be an efficient way within a function to loop through a recordset
of distinct text values (record 1 = text1, record 2 = text2, etc.) with the
result displayed as follows:
If only one record:
fncMyFunction = "text1." (that's text1 followed by a period)
If multiple records and rst.recordcount = n:
fncMyFunction = "text1, text2, ... , and text-n." (commas separate each
record except for the last which is preceded with the word "and" and is
followed by a period).
[the function produces a string which can be incorporated elsewhere]
Thanks for any advice.
Mark