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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

edit a word document

Status
Not open for further replies.

samotek

Technical User
May 9, 2005
197
BG
Is it possible to open the word document called Notes in My Documents from within Access, write some notes and then save it.Then to open this same document from another place in Access, say another form, write further notes and then save agan.I didnt hear something of the kind up to now and i am curious about the opinion of the professionals
 
It is very possible with OLE Automation.
Have a look at the CreateObject and GetObject functions.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Hi

Yes

There are (at least)two ways to do it:

Use Shell to open word, from within Access

Use GetObject() and/or CreateObject(), in VBA code to open an instance of word from within Access, you can then control this instance of word from Access

See help on Shell, GetObject(), CreateObject()

As an aside, why not use a Memo column in an Access table to keep your notes?

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top