My apologies in advance for the length of message.
I have a subform called Payment which stores the info of tenants’ rents due. At the moment I have the Frequency field as a dropdown box showing payments being Monthly, Quarterly or Weekly. In the NextDue field I have an IIf statement which, depending on the option chosen from the Frequency field returns the RentPerFrequency amount of rent for that period. The NextDue field is the date when next the rent falls due.
What I would like to do, if possible, is for the NextDue field to show an error if the correct next due date is not stored. I believe I would therefore need to store somewhere the dates for the different quarter days of when the rent falls due as I cannot use the current Frequency field because English quarter days and Scottish Quarters days are different dates (even though they are quarterly).
English quarter days fall on 25 March, 24 June, 29 September and 25 December. What would be helpful is an IIf statement in the NextDue field to show an error if an incorrect next due date is not inserted (ie if the English Quarter Day is selected then the date should be either 25 March, 24 June, 29 September or 25 December) and the same for Scottish Quarter days which are 28 February, May, August and November.
I understand I am asking a lot however I have been racking my brain and inserting and deleting tables and trying IIf statements until my brain has frazzled!