I've just come across a peculiar 2000 vs. 2003 problem.
I have a form that generates an email via VBA code. The body text of this email varies depending upon the contents of the data tables. The technique I have been using is to establish a mailto: line, and treat it as a hyperlink. The code therefore works like this:
Dim myMessage as String
myMessage = "mailto:" & myAddressList & "&subject=" & mySubjectLine & "&body=" & myBodyText
Application.FollowHyperlink myMessage
In Access 2000, this works fine. However, in Access 2003, the code fails at the last line whenever myBodyText exceeds somewhere around 450 characters. This is true even if I divide the text in myBodyText into several sections. In other words, if the message text exceeds 450 characters, the hyperlink won't trigger.
The exact error message is Run-Time Error 87: an unexpected error has occured. Any guesses as to why this is happening?
I have a form that generates an email via VBA code. The body text of this email varies depending upon the contents of the data tables. The technique I have been using is to establish a mailto: line, and treat it as a hyperlink. The code therefore works like this:
Dim myMessage as String
myMessage = "mailto:" & myAddressList & "&subject=" & mySubjectLine & "&body=" & myBodyText
Application.FollowHyperlink myMessage
In Access 2000, this works fine. However, in Access 2003, the code fails at the last line whenever myBodyText exceeds somewhere around 450 characters. This is true even if I divide the text in myBodyText into several sections. In other words, if the message text exceeds 450 characters, the hyperlink won't trigger.
The exact error message is Run-Time Error 87: an unexpected error has occured. Any guesses as to why this is happening?