Variable Fields

J

Joe

I am trying to run a search where it would take the
Between function and find all the fields within that
range. How do I get Access to prompt for those two dates
so that each time I want to run the query I can just enter
the two dates instead of changing the "formula" for the
criteria?
 
J

JohnFol

Depends on where the search is being run from. If it's a report, have alook
at the "Sales By Year" report in the sample Northwind db. If it's just
opening a query, just add it into the SQL. For example

SELECT MyDateField, MyOtherField FROM Table1 WHERE MyDateField Between
[Enter Start Date] And [Enter End Date];



Add them into the QBE grid
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top