Hi,
Been a while since I've used access. What I got is a table of
properties to rent whch has a Tenancy start date. The rent is due on
the same day of the month as the tenancy start date. To make it easy for
staff I'm trying to show in a rent due cololumn the actual day the rent
is due this month. This I can do using this:
Rent Due: IIf([start date],IIf(Day([start
date])<Day(Date()),D ateValue(Day([start date]) & "/" &
Month(Date())+1 ),DateValue(Day ([start date]) & "/" & Month(Date()))) ,"n/a")
Works ok, but when I use a query on it to find the rents due in say the
next seven days using:
Between Date() And Date()+"7"
It works ok until it goes past the end of the month, it then returns all
due dates.
I have the same problem if I use selected dates:
Between DateValue([start date?]) And DateValue([end date?])
I seem to be going round in circles so have reverted to my old friend
usenet seeking the answer.
Can anyone help. I realise I may be doing it the wrong way totally so if
you could enlighten me one way or the other it would be appreciated.
TIA
R.
Been a while since I've used access. What I got is a table of
properties to rent whch has a Tenancy start date. The rent is due on
the same day of the month as the tenancy start date. To make it easy for
staff I'm trying to show in a rent due cololumn the actual day the rent
is due this month. This I can do using this:
Rent Due: IIf([start date],IIf(Day([start
date])<Day(Date()),D ateValue(Day([start date]) & "/" &
Month(Date())+1 ),DateValue(Day ([start date]) & "/" & Month(Date()))) ,"n/a")
Works ok, but when I use a query on it to find the rents due in say the
next seven days using:
Between Date() And Date()+"7"
It works ok until it goes past the end of the month, it then returns all
due dates.
I have the same problem if I use selected dates:
Between DateValue([start date?]) And DateValue([end date?])
I seem to be going round in circles so have reverted to my old friend
usenet seeking the answer.
Can anyone help. I realise I may be doing it the wrong way totally so if
you could enlighten me one way or the other it would be appreciated.
TIA
R.
Comment