I am doing a 3 year comparison therefore on my Frontpage Form, I would like to key into a text box the current year/month, then for the 2nd and 3rd year text boxes to automatically calculate a years difference.
For example
Text Box : month = 200402 (Input field)
Text Box : Pend = 200302 (Calculation field)
Text Box : 3end = 200202 (Calculation field)
The Database field name is called Salesperiod, the format: Number: Long Integer, output example 200402. I have tried the subsequent default value formula but I cant get it to work. Could you please help
For example
Text Box : month = 200402 (Input field)
Text Box : Pend = 200302 (Calculation field)
Text Box : 3end = 200202 (Calculation field)
The Database field name is called Salesperiod, the format: Number: Long Integer, output example 200402. I have tried the subsequent default value formula but I cant get it to work. Could you please help
Code:
Text Box Properties: month = current year/month
Input field
Text Box Properties: Pend = 2nd year/month
Default Value = IIf([month]>0,([month]-100))
Text Box Properties: 3end = 3rd year/month
Default Value = IIf([pend]>0,([pend]-100))