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

Integrating db code with Word Templates/macros

Status
Not open for further replies.

TechieJr

Instructor
Nov 13, 2002
71
CA
Hello again all,

My database has an address book feature which our office uses for just about everything.

This probably goes a bit beyond your normal Access VB question, and it might get a bit lengthy, but allow me to describe what's going on.

I have a button on the Access address book form which allows a user to begin a letter to the selected contact using one of four different letterheads.

The way it works is this:
- User finds the address book entry they want
- They click a button on the form which copies the appropriate fields to the clipboard
- Next, a letterhead selection form is opened (by code) where they choose one of four options.
- depending on the selection, one of four macros is executed in which the command line includes switches to start a new document in Word based on a specified template, then start a Word macro which copies the information previously pasted to the clipboard into the document.

The process works great on my machine. The problem is that the macros on the Word side are all in the Normal.dot template. We would like to be able to put the macros into the letterhead templates because of problems which arise from time to time with Normal.dot. We don't want to have to go around to everyone's workstation and modify their Normal.dot either.

Can anyone share how I might change the way things work, either on the Access side or the Word side, to get this thing working more securley?

Many thanks in advance.

TechieJr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top