A previous forum user help me out by giving me this code:
form1.#subform[0].Term_Start_Date::exit - (FormCalc, client)
// Get the number of days from the epoch for the starting date
var startNumber = Date2Num(Term_Start_Date.rawValue,"YYYY-MM-DD")
// Add the lease term to the startNumber
var diff = startNumber + LeaseTerm.rawValue
// change back to a date
Term_End_Date.rawValue = Num2Date(diff, "YYYY-MM-DD")
This allows me to calculate a lease date based on start date and lease length. It works like a dream. My question is currently once I choose the lease term and the lease start date I must manually click on the Term_End_Date to have it populate properly. I have this code in the "exit*" section. Is there anyway to have the field auto populate once a user pick a begining date, essentialy eliminating the need for a user to click on the Term_End_Date field?
Thanks to the memeber's.