M
mike
hi. i'm baffled. i have some code that loops through
records, puts them in a list an email message, and puts a
return after each record in the list. this works very well
except that sometimes the vb does not put a return between
records and i end up with two records on the same line of
the email message. it's almost like it doesn't recognize
the vbcrlf sometimes. any thoughts? thanks!!
Accounts = ""
Set rs = db.OpenRecordset("SELECT * FROM Accounts")
If Not rs.EOF Then
Do While Not rs.EOF
Accounts = Accounts & rs![AccountNumber] & " - " & rs!
[AccountName] & " (" & rs![City] & ", " & rs![State] & ")"
& vbCrLf & _
" " & rs![FROMTerritory] & rs![TOTerritory]
& vbCrLf
rs.MoveNext
Loop
End If
records, puts them in a list an email message, and puts a
return after each record in the list. this works very well
except that sometimes the vb does not put a return between
records and i end up with two records on the same line of
the email message. it's almost like it doesn't recognize
the vbcrlf sometimes. any thoughts? thanks!!
Accounts = ""
Set rs = db.OpenRecordset("SELECT * FROM Accounts")
If Not rs.EOF Then
Do While Not rs.EOF
Accounts = Accounts & rs![AccountNumber] & " - " & rs!
[AccountName] & " (" & rs![City] & ", " & rs![State] & ")"
& vbCrLf & _
" " & rs![FROMTerritory] & rs![TOTerritory]
& vbCrLf
rs.MoveNext
Loop
End If