![]() |
#1
|
|||
|
|||
![]()
I have a bit of a nasty problem which I suspect only macropod or gmayor are going to be able to answer (first time poster, but have been lurking around reading their stuff for a few months), but I'll ask it for anyone that fancies having a go. I've been trawling for answers on this for a few months and made some progress but the final hurdle eludes me.
Due to IT restrictions, I can't use VBA for this, otherwise it'd be a doddle, so I need to do it in word fields. I need to be able to take two dates (Date1, Date2), get a calculated date (CalcDate = Date1 +28 Days), and then display either Date2 or CalcDate, whichever is *earliest*. I have succesfully implemented macropod's Date Calculation method to display CalcDate in another document. However, I'm having a bit of a head melt around expanding it out to a longer process (how to implement field codes isn't nearly as obvious as VBA...). The way I think this should look is: {QUOTE { {Set Delay 28} {Set Difference {= (Code from "Calculate the # Days Difference Between Two Dates" using Date1 & Date2)} {IF {Difference} > {Delay} "{= (Code from "Calculate a day, date, month and year, using n days delay") referencing Date1}" "Date2"} }} Am I on the right track or am I missing something fairly obvious here? |
Tags |
arrrgh, date fields mathematics, macropod |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Date Fields | ubns | Word | 8 | 05-15-2012 11:20 PM |
Saving & reopening comparison | MarshallAbrams | Word | 0 | 03-29-2012 06:19 AM |
Comparison jumps to end | MarshallAbrams | Word | 2 | 03-21-2012 04:04 AM |
![]() |
andrei | Excel | 9 | 02-03-2012 03:40 AM |
30+ days Variable Day Date Calculations via Fields | ztag | Word | 2 | 01-06-2012 11:12 AM |