Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-22-2022, 09:02 PM
kcaron kcaron is offline How to tell if a legacy control changed Windows 10 How to tell if a legacy control changed Office 2021
Novice
How to tell if a legacy control changed
 
Join Date: Oct 2022
Posts: 3
kcaron is on a distinguished road
Default How to tell if a legacy control changed

I am creating a Promissory Note form using legacy controls so I can calculate monthing payments based on loan origination, first payment date, final payment date and rate.



I initialize these fields in the Document_New sub.
The monthly payment is calulated when a loan/note amount is entered.
All this is working fine

I would like to recalulate if any of the dates change with the Exit macro:

loan origination:
If > first payment, then adjust first payment date to the beginning of the next
month and adjustthe final payment date for number of periods. (monthly payment
is not changed since Loan Amoritization just shifts left/later)

first payment date:
If changed, recalulate final payment date (again monthly payment is not affected)

final payment date:
If changed, recalculate number of payment periods, and recalculate monthly
payments.

I am trying to find a way to tell if the dates changed when leaving the field.

I tried global declarations of values, but found out lifetime of these variables is only valid while a sub/function is active.

I am looking at static variables to save previous values. Is there a better way?

Thanks,
Ken
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Legacy Form SYE Word 4 07-26-2019 05:16 AM
How can I set up tab to go back and forth between legacy fields and content control fields in a Word Ikajed Word 1 10-13-2017 06:06 PM
How to tell if a legacy control changed legacy Form Field sunrise06 Word 9 05-02-2015 06:48 PM
How to tell if a legacy control changed Comparing dates in legacy control text box JoeE Word VBA 2 05-08-2013 11:01 PM
Can't open .pst legacy files RetiredEngineer Outlook 1 11-14-2009 01:06 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:40 PM.


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