G
Guest
I am using an Array to pass E-Mail addresses to Lotus Notes. The number of E-Mail addresses depends on the results of a query and hence I have to have an Array that may be bigger than the number of E-Mail addresses. The code I'm using to generate the Array is below:-
intCounter = rstEmailAddress.RecordCount
Dim arrSendto(1 To 25) As String
rstEmailAddress.MoveFirst
Do While intCounter <> 0
arrSendto(intCounter) = rstEmailAddress!fldEMail
intCounter = intCounter - 1
rstEmailAddress.MoveNext
Loop
When I pass this to Lotus Notes it tries to send an E-Mail to:-
(e-mail address removed), (e-mail address removed), (e-mail address removed), , , , , , , , , , , , , , , , , , , , , ,
How do I limit the length of my Array dependent on the value of rstEmailAddress.RecordCount.
All help gratefully received.
Andy W
intCounter = rstEmailAddress.RecordCount
Dim arrSendto(1 To 25) As String
rstEmailAddress.MoveFirst
Do While intCounter <> 0
arrSendto(intCounter) = rstEmailAddress!fldEMail
intCounter = intCounter - 1
rstEmailAddress.MoveNext
Loop
When I pass this to Lotus Notes it tries to send an E-Mail to:-
(e-mail address removed), (e-mail address removed), (e-mail address removed), , , , , , , , , , , , , , , , , , , , , ,
How do I limit the length of my Array dependent on the value of rstEmailAddress.RecordCount.
All help gratefully received.
Andy W