You really need to create one combined table to do this. You can add an
extra field that indicates whatever is the difference between the 60
tables.
You can use an Append query to populate new combined table from each of
your
60 tables.
It is possible to combine a few tables in a UNION query, but I doubt that
will be successful with 60 tables. See help on UNION.
In the query for one table, you can switch it to SQL View (View menu, in
query design), and change the WHERE clause to:
WHERE (([Enter Start Date] Is Null) OR ([Field1 >= [Enter Start
Date]))
AND (([Enter End Date] Is Null) OR ([Field1 < [Enter Start Date]+1))
If you are interested in how to create a search form with lots of
optional
criteria, see:
http://allenbrowne.com/ser-62.html
However, you will still need the combined table to be able to get this to
work.
Thanks for the help
one thing more please
i have different table (60) with same format as stated before
now i have to make a single list of min for all tables for any
specified
date
i made the date range optional like
Between[Enter Start Date] And [Enter End Date]
so i can have data for any date range of the table
one thing is missing here, how could i add columns in the result that
mention the table name (if query can work on all table and export the
result
in a single table) and the 2 columns for those dates on which the query
runs
AND
how could i apply the sigle query to all tables and have the result
exported
in a single table for all sixty tables.
This would be really helpfull
:
1. Create a query using this table.
2. Depress the Total button on the toolbar.
Access adds a Total row to the design grid.
3. Drag the date field into the grid.
In the Total row, choose Where.
In the Criteria row under this field, enter the limiting dates, e.g.:
Between #6/1/2006# And #6/30/2006#
4. Drag the Amount into the grid.
In the Total row, choose Min
If you want to do it without a query, switch this query to SQL View
(View
menu), and take a look at the WHERE clause. You can use DMin() to get
this
value, with the 3rd argument like what you see. Example:
=DMin("Amount", "Table1", "[Date] Between #6/1/2006# And
#6/30/2006#")
Hopefully you don't really have a field named Date. Access will
misunderstand that name and sometimes evaluate it based on today's
date
instead of the contents of that field.
Dear All,
I have table having more than 1000 of rows for every date like
Date Amount
01/01/2001 5000
31/12/2005 7200
i want to get a single line answer of minimum amount for a date
range
through a query
what i get now in return of the query is the all record for the
specified
date.
I need to get the minimum amount, let say, for a month or for a
year, a
single minimum amount.
If anyone can help please