B
Bob Quintal
All,
My Loop is only getting the first eMail address though it is
reapeating the address the correct number of times. Now what am I
doing wrong?
Dim dbsCurrent As Database
Dim rstRecords As Recordset
Dim SendWhat As String
SendWhat = "SELECT llListingID, pbeMailAddress FROM
qryBuyerByCounty WHERE (llListingID)= " &
Forms!frmSendeMailToMatchedBuyers!txtListingID & ";"
Set dbsCurrent = CurrentDb()
Set rstRecords = dbsCurrent.OpenRecordset(SendWhat, dbOpenDynaset,
dbSeeChanges, dbOptimistic)
With rstRecords
Do Until .EOF
txtTo = txtTo & pbeMailAddress & ";"
.MoveNext
Loop
End With
Thanks,
Gina Whipp
txtTo & pbeMailAddress & ";"
should be
txtTo & !pbeMailAddress & ";"
"I feel I have been denied critical, need to know, information!" -
Tremors II