P
Pip''''n
I have a rental program to rent and reserve rental units.
Bookings entered contain a [DateOut], [DateIn], and [DateReturned] for the
date of rental, expected date of return, and actual date returned
respectively.
I would like to display the current status of each unit.
The values that I would like to display for each unit is: Available,
Unavailable, Return Today, or Out Today.
These values are updated as the user chooses a date to search by. Each unit
is listed in a listbox. And all units are to be listed even if they do not
have any current or future bookings or reservations.
It is possible to have a booking that does not have a [DateIn]. In this
case, and the date chosen is after the [DateOut] the unit is to be marked as
"Unavailable" for all dates searched after this point until the unit is
actually returned.
Each unit can have multiple reservations (over different date ranges) but
can only have one current rental that is not returned.
I have made this work but it runs through 4 queries and is very confusing to
me. I'd like to simplify it but don't know how. I can do all the pieces
separately but dont know how to put them all together at once.
Any assistance is greatly appreciated,
Pip''n
Bookings entered contain a [DateOut], [DateIn], and [DateReturned] for the
date of rental, expected date of return, and actual date returned
respectively.
I would like to display the current status of each unit.
The values that I would like to display for each unit is: Available,
Unavailable, Return Today, or Out Today.
These values are updated as the user chooses a date to search by. Each unit
is listed in a listbox. And all units are to be listed even if they do not
have any current or future bookings or reservations.
It is possible to have a booking that does not have a [DateIn]. In this
case, and the date chosen is after the [DateOut] the unit is to be marked as
"Unavailable" for all dates searched after this point until the unit is
actually returned.
Each unit can have multiple reservations (over different date ranges) but
can only have one current rental that is not returned.
I have made this work but it runs through 4 queries and is very confusing to
me. I'd like to simplify it but don't know how. I can do all the pieces
separately but dont know how to put them all together at once.
Any assistance is greatly appreciated,
Pip''n