Answer the question
In order to leave comments, you need to log in
How to subtract the given date from the current date in Access (in Sql mode)?
You need to create a query in Access that would calculate interest according to deposit accounts. For the calculation, it is necessary that the date of opening the account be subtracted from the current date in order to obtain the value of the months and substitute them into the corresponding formulas for calculating interest on deposits for the current date.
For example:
[DepositAccount]![Amount]*(1+[Account Type]![Percentage]*(CurrentDate(month)-[DepositAccount]![OpenDate](month))/(30*100))
How to write this in Sql ? Since the Access expression builder does not count this.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question