dbTalk Databases Forums  

Manipulating a Word document from Access 2007

comp.databases.ms-access comp.databases.ms-access


Discuss Manipulating a Word document from Access 2007 in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bobby
 
Posts: n/a

Default Manipulating a Word document from Access 2007 - 10-14-2008 , 02:06 PM






Hi,
I am using Office 2007.

I need to be able to open a Word document from Access and insert a
customer name and address depending on the record selected.

I guess I could do it using Word VBA, but I really want Access to
control what goes into the document.

Can anybody recommend the best way to do this.

Thanks for any help,

Colin

Reply With Quote
  #2  
Old   
Albert D. Kallal
 
Posts: n/a

Default Re: Manipulating a Word document from Access 2007 - 10-14-2008 , 04:19 PM







I have a nice working sample that does a merge of the current record to
word.

The sample I have can be found here:
http://www.members.shaw.ca/AlbertKal.../msaccess.html

What is nice/interesting about my sample is that is specially designed to
enable ANY form with ONE LINE of code....

Thus, each time you build a new form, you can word merge enable it with
great ease.

Make sure you read the instructions from above, and you should eventually
get to the follwoing page
http://www.members.shaw.ca/AlbertKal...rge/page2.html


Note that the merge can also use a query, and thus you don't have to merge
just "one" record..

After the merge occurs, you get a plain document WITHOUT any merge fields,
and this allows the end user to save, edit, or even email the document
(since the merge fields are gone after the merge occurs).

Give the above a try.


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal (AT) msn (DOT) com



Reply With Quote
  #3  
Old   
Bobby
 
Posts: n/a

Default Re: Manipulating a Word document from Access 2007 - 10-15-2008 , 07:02 AM




Hi Albert
This is excellent. I'm just having a look at it now, but it looks
exactly what I was after,

Thanks a lot

Colin


On 14 Oct, 22:19, "Albert D. Kallal" <PleaseNOOOsPAMmkal... (AT) msn (DOT) com>
wrote:
Quote:
I have a nice working sample that does a merge of the current record to
word.

The sample I have can be found here:http://www.members.shaw.ca/AlbertKal.../msaccess.html

What is nice/interesting about my sample is that is specially designed to
enable ANY form with ONE LINE of code....

Thus, each time you build a new form, you can word merge enable it with
great ease.

Make sure you read the instructions from above, and you should eventually
get to the follwoing pagehttp://www.members.shaw.ca/AlbertKallal/wordmerge/page2.html

Note that the merge can also use a query, and thus you don't have to merge
just "one" record..

After the merge occurs, you get a plain document WITHOUT any merge fields,
and this allows the end user to save, edit, or even email the document
(since the merge fields are gone after the merge occurs).

Give the above a try.

--
Albert D. Kallal * *(Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKal... (AT) msn (DOT) com


Reply With Quote
  #4  
Old   
Tony Toews [MVP]
 
Posts: n/a

Default Re: Manipulating a Word document from Access 2007 - 10-15-2008 , 02:53 PM



Bobby <bobby2 (AT) blueyonder (DOT) co.uk> wrote:

Quote:
This is excellent. I'm just having a look at it now, but it looks
exactly what I was after,
And it works very well.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/


Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.