I have searched for this topic but haven't seen one just yet.
My problem:
I have a form that has a date and the date backcolor must be one of 4 colors. The conditions.
The date should be yellow if the current month is the month prior to the fields month.
The date should be green if the current month is the same as the fields month.
The date should be red if the current month is one month after the fields month.
I have come up formatting that works, however, I am using the date()-30 etc. function but this is not what I need. It must be based on the month and not days.
I am fumbling with DateAdd("m",date(),1) but I haven't got a clue as to the arguments for this.
My problem:
I have a form that has a date and the date backcolor must be one of 4 colors. The conditions.
The date should be yellow if the current month is the month prior to the fields month.
The date should be green if the current month is the same as the fields month.
The date should be red if the current month is one month after the fields month.
I have come up formatting that works, however, I am using the date()-30 etc. function but this is not what I need. It must be based on the month and not days.
I am fumbling with DateAdd("m",date(),1) but I haven't got a clue as to the arguments for this.