Create a table named TblNumbers with onr field named Num. Fill the table
with sequential numbers from 1 to the maximum nomber of days you think there
will be between [FirstNight] and [LastNight]. Create a query that includes
TblNumbers and your reservation table. Create a calculated field that looks
like:
ReservationDates:[FirstNight] + [Num]
Put the following expression in the criteria of the calculated field:
Between [FirstNight] And [LastNight]
When you run the query you will get all the dates between {FirstNight] and
[LastNight]
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
Over 1125 users have come to me from the newsgroups requesting help
(e-mail address removed)
Struan said:
I have made a reservations database in ms access.
It has two fields which are [FirstNight] and [LastNight] and for various
reasons I need to extract, using a query, the dates inbetween in
"dd/mm/yyyy"
format. can anyone help??