Hi - Ok if you make a blank form then add to it two combo
boxes with and make sure their names are CboStartDate &
CboEndDate you can then use these values as you would use
a parameter value in a query to pull out records between
the two dates. You need to make a query with your records
in - if you have just one date field:
In the criteria row for the date field type the criteria as
Between (startdate) and (enddate)
only you have to reference the CboStartDate and CboEndDate
boxes on the form so it looks like this:
Between ([Forms]![NameofForm]![CboStartDate]) and ([Forms]!
[NameofForm]![CboStartDate])
This should work as long as you have the form open when
you run the query - so usually its easy just to make a
command button that opens the query on the form - there is
a wizard once you draw the button
If you have 2 fields - startdate and enddate - just
reference the appropriate combo box in the criteria of
each field.
Hope this makes sense -
Natalie
-----Original Message-----
I have a set of records that I would like to filter with a range of dates.
I would like to select those dates via a form. How do I
use the combo boxes, CboStartDate & cboEndDate to select
the records in that range?
OR
If you have a better idea, let me know.
Thanks As Always,
RIP
.