View Full Version : Stored queries or SQL Statements


PaulA
05-17-2002, 11:51 AM
Greetings!

In general, is it best to base reports on stored queried developed specifically for a report or to create a SQL statement within the report (same query but not stored as a seperate object).

Also, are calculated fields best done in a query or in an unbound control on a report?

These questions are to help facilitate optimum speed and performance.

Thanks.

RichMorrison
05-17-2002, 12:34 PM
In general, a stored query is a more efficient RecordSource for a report than is an inline SQL statement. The "Jet" engine optimizes queries when you save them.

I am sure there are exceptions for some types of complex queries.

Calculations are also beter done in a query than with formulae in text boxes.

RichM

Rich
05-17-2002, 04:47 PM
Calculations are best done on a form or in a report, not in a query.