Hi!
I have a table which contains Baseball-Cards and I have a table containing collectors with email-adresses, search strings and addresses.
I seek the DB and get all matches of search strings and cards. The results are kept in a temp-txtfile.
In the next step this tmpfile is read line by line and the email is generated one after the next. (should be)
The problem now is, that only the first msg is produced, the next ones not, the first is not sendable, as it's placed into the inbox of outlook...
Following the code and my explanations. Any help?
If sLine = "#!EMAIL-ENDE!#" Then
If txtMainAddresses <> "" And bolCards = True Then
DoCmd.SendObject acSendNoObject, , _
acFormatTXT, _
txtMainAddresses, , , _
txtSubject, txtBody, True
txtMainaddresses contains one email-address
txtsubject is a string with the Subject and txtBody contains the cardslist as a long string with Cr's and Lf's
If I set True to False, either I get only one email, in a second run I get nothing...
HEEEELP!
I have a table which contains Baseball-Cards and I have a table containing collectors with email-adresses, search strings and addresses.
I seek the DB and get all matches of search strings and cards. The results are kept in a temp-txtfile.
In the next step this tmpfile is read line by line and the email is generated one after the next. (should be)
The problem now is, that only the first msg is produced, the next ones not, the first is not sendable, as it's placed into the inbox of outlook...
Following the code and my explanations. Any help?
If sLine = "#!EMAIL-ENDE!#" Then
If txtMainAddresses <> "" And bolCards = True Then
DoCmd.SendObject acSendNoObject, , _
acFormatTXT, _
txtMainAddresses, , , _
txtSubject, txtBody, True
txtMainaddresses contains one email-address
txtsubject is a string with the Subject and txtBody contains the cardslist as a long string with Cr's and Lf's
If I set True to False, either I get only one email, in a second run I get nothing...
HEEEELP!