Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-28-2012, 03:59 AM
Fields Fields is offline Complex date comparison/Selection using fields instead of VBA Windows XP Complex date comparison/Selection using fields instead of VBA Office 2003
Novice
Complex date comparison/Selection using fields instead of VBA
 
Join Date: May 2012
Posts: 5
Fields is on a distinguished road
Default Complex date comparison/Selection using fields instead of VBA

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?
Reply With Quote
 

Tags
arrrgh, date fields mathematics, macropod



Similar Threads
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
Complex date comparison/Selection using fields instead of VBA Complex array formula 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

Other Forums: Access Forums

All times are GMT -7. The time now is 02:20 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft