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

Word - using field calculations

Status
Not open for further replies.

Wrathchild

Technical User
Aug 24, 2001
303
US
Hello, I'm trying to setup a customer template using field calculations and have been struggling for hours. I am trying to make a field that will add to an existing field elsewhere on the form.

I have LetterDate at the top of the letter which the code for is: { DOCPROPERTY LetterDate \@ "MMMM d, yyyy"} and this field works just fine.

I'm trying to add 45 to this field to display a "due by" date in another field. I've read many posts and tried many different ways to accomplish this but could never figure out how to reference another field.

So if LetterDate = 8/1/11
I would like Due By to = 9/15/11

The most I was able to accomplish was math within a field, however I couldn't reference another field (ie this field = that field + 45)
 
Date calculations are possible in Word Fields but I am not going to attempt to go into detail here. Member macropod has done all the hard work and produced a document with all the gory details; it is available from Graham Mayor's web site here:
Enjoy,
Tony

------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.

I'm working (slowly) on my own website
 
Something I often do is perform calculations in Excel and then paste the results into Word, which displays them nicely. Of course it's more complex when you're trying to make a template for others. But you could distribute prepared Excel documents. There are also templates for Excel, though I've never tried using them.

Does this help?

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 11.5 with SQL and Windows XP [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top