I use a db for my checkbook register. My current job pays twice a month, on the 1st and the 15th. I use some code that allows only items dated before my next payday to be figured into my balance, so that anything dated past my next payday isn't figured into the balance until that payday gets here. For example, if today is 5/27 and I schedule an online payment for 6/4, that payment isn't subtracted from my balance until my payday on 6/1. Here is the code I use:
If todays date was between the 1st and the 14th of the month, I need transactions dated before the 15th to be included in the balance and here's how I find them:
IIf([DateTransaction]<DateSerial(Year(Date()),Month(Date()),15)
And if today's date is between the 15th and the last day of the month, I want the transactions dated before the first day of next month to be included in the balance. Here's how I do it:
IIf([DateTransaction]<DateSerial(Year(Date()),Month(Date())+1,1)
I'm changing jobs to one that pays every two weeks on Wednesday so I'm looking for the equivalent code to do the same thing for bi-weekly paydays.
If todays date was between the 1st and the 14th of the month, I need transactions dated before the 15th to be included in the balance and here's how I find them:
IIf([DateTransaction]<DateSerial(Year(Date()),Month(Date()),15)
And if today's date is between the 15th and the last day of the month, I want the transactions dated before the first day of next month to be included in the balance. Here's how I do it:
IIf([DateTransaction]<DateSerial(Year(Date()),Month(Date())+1,1)
I'm changing jobs to one that pays every two weeks on Wednesday so I'm looking for the equivalent code to do the same thing for bi-weekly paydays.