This is very weird! Here is my code:
With strBody set to these values:
strBody = "The following is your anylongword"
strBody = "The following is your usernam"
strBody = "The following is your username"
strBody = "The following is your hippopotomus"
strBody = "The following is your whyme????"
strBody = "The following is your now this just don't make sense"
strBody = "The following is your nowthisjustdon'tmakesense"
strBody = "The following is your nowthisjustdontmakesense"
I get this error: "This program has performed an illegal operation and will shut down."
However these values are fine:
strBody = "The following is your blah blah"
strBody = "The following is your insert any word here"
strBody = "The following is your user"
strBody = "The following is your usern"
strBody = "The following is your userna"
strBody = "The following is your sevench"
strBody = "The following is your sevenchrs"
strBody = "The following is your sevenchrslongandthensome"
strBody = "The following is your HelpMePlease"
Does anybody see the logic of this?
This is not random, if I repeat the same values more then once I get the same result. And the mail always gets sent regardless! The error comes up after I press yes on the security popup.
Dave
Code:
Dim strEmailAdd, strBody, strSubject As String
strBody = "The following is your username"
strEmailAdd = "test@somewhere.com.au"
strSubject = "Database"
DoCmd.SendObject , , , strEmailAdd, , , strSubject, strBody, False
strBody = "The following is your anylongword"
strBody = "The following is your usernam"
strBody = "The following is your username"
strBody = "The following is your hippopotomus"
strBody = "The following is your whyme????"
strBody = "The following is your now this just don't make sense"
strBody = "The following is your nowthisjustdon'tmakesense"
strBody = "The following is your nowthisjustdontmakesense"
I get this error: "This program has performed an illegal operation and will shut down."
However these values are fine:
strBody = "The following is your blah blah"
strBody = "The following is your insert any word here"
strBody = "The following is your user"
strBody = "The following is your usern"
strBody = "The following is your userna"
strBody = "The following is your sevench"
strBody = "The following is your sevenchrs"
strBody = "The following is your sevenchrslongandthensome"
strBody = "The following is your HelpMePlease"
Does anybody see the logic of this?
This is not random, if I repeat the same values more then once I get the same result. And the mail always gets sent regardless! The error comes up after I press yes on the security popup.
Dave