Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Wisteria Wisteria is offline
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   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
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.

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about exporting Word table to Access megadari Tables 2 May 16th 08 11:41 AM
rtf formatted Memo field from Access 07 Mailmerge into Word Lara Mailmerge 3 October 23rd 07 08:56 PM
Exporting from MS Access to MS Word - maximum number of characters JE Microsoft Word Help 1 October 23rd 07 05:18 PM
Problems exporting access to word Leroy Microsoft Word Help 4 October 18th 05 12:44 PM
Mail merge from Access, with hyperlink field troubadour Mailmerge 4 June 11th 05 04:44 PM


All times are GMT +1. The time now is 02:10 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"