Thank you for your response Allen. I did as instructed in your link but
it
still isn't working. This is what I did:
created the input form, start and end date fields and command button -
naming them all as you directed
I cut and paste your code into the OnClick event of the command button and
made the following changes:
strReport = "[Hunter Ratios]" 'Put your report name in these quotes.
strDateField = "[Hunt Date]" 'Put your field name in the square
brackets
in these quotes.
When I run the form, the dates appear (I set defaults) but when I press
the
command button, nothing happens. I took the debug quote off in the event
procedure and there is not display.
Any idea what I'm doing wrong? Thanks.
Allen Browne said:
See:
Limiting a Report to a Date Range
at:
http://allenbrowne.com/casu-08.html
The article offers two approaches:
1. Using parameters in the query, such as:
Between [Forms].[Form1].[Text0] And [Forms].[Form1].[Text2]
2. Using the WhereCondition of OpenReport.
I would like to create a form that asks for start date and end date
(with
defaults) that will then send these values to a report that starts with
a
query. I know how to create the form, I just don't know how to call
the
report(with query front end) with the inputted values. Thank you.