I need to write an access query that will pull records from a table if
the start or end dates input by the user are within the start and end
dates in the db. I can't use BETWEEN because either of the dates in
the db may be outside those input. Basically it's something like:
select where input.startdate <= tbl.startdate or input.endate >=
tbl.enddate
so that if the query date are start 04/01/2000 and end 09/31/2000 it
will return records with start 01/01/2000 and 06/31/2001 because the
input dates are between the record dates.
Is this possible??
There is a DATE function in access that will convert a date to a
serial number which would let me do the math but I think it needs the
year, month and day to be entered as separate parameters:
DATE(year,month,day). Is there anything that will let me just convert
a date to an number in a query?
Thanks for the help.
b