A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

help exporting an access hyperlink field to a mailmerge word doc



 
 
Thread Tools Display Modes
  #1  
Old June 5th, 2009, 09:51 PM posted to microsoft.public.word.mailmerge.fields
Wisteria
external usenet poster
 
Posts: 2
Default help exporting an access hyperlink field to a mailmerge word doc

I am using an Access query, that contains home email addresses formatted as
"hyperlink", as a data source when creating a mail merge directory in Word.
The result for this field in the Word doc is:
# instead of:
(underlined and clickable). If I export the query to Excel first, and use
the Excel file as the data source, the directory "home email address" field,
formats as desired. Is it possible to get this accomplished directly from
the Access query, and not performing the Excel step? I am using Office 2007.
  #2  
Old June 5th, 2009, 11:51 PM posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
external usenet poster
 
Posts: 4,550
Default help exporting an access hyperlink field to a mailmerge worddoc

You should be able to create an Access query that strips the necessary
part of the field. e.g. if the hyperlink column is called h, and you
need the first part of the your query SQL could be something like

SELECT left(h, instr(1, h + '#', '#') - 1) as hyperurl, * FROM mytable


The + '#' stuff is only there in case there is not always a # at the end
of the field when the field only contains the first part of the
hyperlink (I do not know what is possible)

Then use that query as the data source for your merge.

If you are not in a position to create queries in that database, you can
try setting up the query directly using the SQLCommand parameter of Word
VBA's OpenDataSource method.

Peter Jamieson

http://tips.pjmsn.me.uk

Wisteria wrote:
I am using an Access query, that contains home email addresses formatted as
"hyperlink", as a data source when creating a mail merge directory in Word.
The result for this field in the Word doc is:
# instead of:
(underlined and clickable). If I export the query to Excel first, and use
the Excel file as the data source, the directory "home email address" field,
formats as desired. Is it possible to get this accomplished directly from
the Access query, and not performing the Excel step? I am using Office 2007.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:13 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.