dcozzi said:
I have been told that all calc that can be made in Excel, can be done with
Queries in Acess. Is there any particualar place where i can find a reference
of how to do something in excel and its counterpart in access?
The biggest difference between "spreadsheet" and "database" is that spreadsheets
are x-y grids of untyped cells that can perform calculations based on the
relative position of cells in the grid. Database tables looks like grids but
they are in fact collections of rows with identical structure and one row really
doesn't "know" anything about any other rows.
So while an Excel sheet can have a number in one cell, a text entry under that,
and a date value under that, a database table would have that entire column
defined as a particular data type and that is all that can go in it. Also
Excel can have formulas combining cells that are in the same row, in the same
column, or even something like "take this cell and multiply it by the cell that
is two rows up and four columns over". Database queries cannot do anything like
that.
Query expressions either aggregate an entire column or they can have expressions
that include field values all found in the same row. Anything beyond that is
either complicated, really slow, or impossible. Running totals for example are
easy as pie for a spreadsheet, but are rather difficult to obtain in a query and
even when accomplished are not very efficient.
Now...once you decide that you want to perform an aggregation on a column or
create a calculation that uses field values all on the same row then the actual
computations you can perform should be pretty much anything you want. Certain
mathematical and business functions might not be built in as they would be in a
spreadsheet, but the functions that are provided should be enough to get you
there. When stuck you can always create custom functions to make complex tasks
easy to accomplish in a query.