I have a Dateadd function in a query, which is supposed to give me 1 month + 7days after whatever end of month date is in another text box
The query is VATDueDate: (DateAdd("m",1,[VAT Date]))+7.
However, if the month is a 31 day one I get the 7th and 30 day one I get the 6th.
I should get the 7th regardless.
Would you know where I am going wrong? for example if the end of month date is 2022/11/30 then it returns 2023/01/06 but I expect 7th.
Thanks.
The query is VATDueDate: (DateAdd("m",1,[VAT Date]))+7.
However, if the month is a 31 day one I get the 7th and 30 day one I get the 6th.
I should get the 7th regardless.
Would you know where I am going wrong? for example if the end of month date is 2022/11/30 then it returns 2023/01/06 but I expect 7th.
Thanks.