I have a spot in my table where dates are tied with numbers i.e.
Datefield: 31 Apr 15
Numberfield: 56000
Every month for each client the month end date is added and a number put it. So each date field and number field is of course tied to a ClientID basically (the master key).
This is all fine, but what I'm trying to do is get a table value calculation which is a subtraction of the month end date within the last 31 days, from the month end date in the last 62 days (basically the most recent month from the most recent before that).
Datefield: 31 Apr 15
Numberfield: 56000
Datefield: 31 May 15
Numberfield: 58000
I want it to subtract 56000 from 58000.
I know how to get dates, though it may not be the best way "(Between Date() And DateAdd("m",-1,Date())". But how do I tie that to the numberfield and subtract them?
This field I'm trying to add, it should auto populate as 2,000, based on the calculation.
Any ideas?