WD2000: Merged Hyperlinks from Access Contain Extra Information (283172)
The information in this article applies to:
This article was previously published under Q283172 SYMPTOMS
When you perform a mail merge in Microsoft Word, using a Microsoft Access database with hyperlinked data in it, the resulting merged data has two parts: the linked reference and the text reference.
For example, the address "somebody@microsoft.com" appears in the merged document as follows:
somebody@microsoft.com#http://somebody@microsoft.com#
CAUSE
This behavior occurs because the subaddress information of the hyperlinked field is converted and displayed along with the address itself.
RESOLUTION
The following method filters out only the address portion of the hyperlinked field:
- Start Access and open the database that contains the mail merge information.
- Click Queries, and then click Create a query in Design view.
- Select the table with the mail merge information, click Add, and then click Close.
- Add the following syntax to the Field line in the query design grid:
newEmailField: Left([oldEmailField],InStr([oldEmailField],"#")-1) NOTE: Substitute the name of your hyperlink field for "oldEmailField." - Save the query and quit Access.
- Base your mail merge document on the preceding query, and use "newEmailField" as the merge field.
Modification Type: | Major | Last Reviewed: | 10/28/2002 |
---|
Keywords: | kbprb KB283172 |
---|
|