Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access To Word VBA code

Status
Not open for further replies.

Dan688

Programmer
Dec 29, 2003
128
GB
Hello all
I am trying at a click of a button in Access to export data within a table into Microsoft Word.
I know that I will have to use VBA but can someone help me out with this?
 
Have a go with Word Mail merge.
[ul][li]Create a suitable query in Access,[/li]
[li]Create a new Mail merge document in Word,[/li]
[li]choose Access as data provider,[/li]
[li]choose your query as data source.[/li]
[/ul]
Voilà! No VBA needed. ;-)

Cheers,
Andreas

[blue]The last voice we will hear before the world explodes will be that of an expert saying:
"This is technically impossible!" - Sir Peter Ustinov[/blue]
andreas.galambos@bowneglobal.de
HP:
 
P.S:

If you need something more sophisticated, you could also try with creating A Word document with bookmarks at certain positions.
Them through Access VBA,
create a word instance opening your doc, and assign the respective values to the bookmarks.

If you don't know how to, do a quick keyword search in the Access VBA forum forum705 . This topic has been discussed several times, so you should find good solutions there.

Good luck,
Andy

[blue]The last voice we will hear before the world explodes will be that of an expert saying:
"This is technically impossible!" - Sir Peter Ustinov[/blue]
andreas.galambos@bowneglobal.de
HP:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top