I am attempting to construct a database for the letting of holiday cottages and since I am relativley new to Access I would appreciate a pointer on how to proceed.
I have two tables (attached jpeg), the first (tblCottageBands) contains records of each cottage with the price/wk for each price band numbered 1 to n. The second table (tblBandDates) contains records with the price band n with a DateFrom and DateTo for the period that applies to that band.
If I have a StartDate and an EndDate for a cottage booking, how should I best approach the searching of the tblBandDates for the band that applies and subsequantly the tblCottageBands for the appropriate price band column in the record for the cottage? Can this be done using SQL or must I resort to VBA?
Thanks
I have two tables (attached jpeg), the first (tblCottageBands) contains records of each cottage with the price/wk for each price band numbered 1 to n. The second table (tblBandDates) contains records with the price band n with a DateFrom and DateTo for the period that applies to that band.
If I have a StartDate and an EndDate for a cottage booking, how should I best approach the searching of the tblBandDates for the band that applies and subsequantly the tblCottageBands for the appropriate price band column in the record for the cottage? Can this be done using SQL or must I resort to VBA?
Thanks