Adding a calculated field to a query

D

Duane Hookom

Order_Count seems to be a aggregation. These are enabled in your query design
by selecting View->Totals. This will aggregate your records and generally
require setting the Total: row in the query to something like Group By,
Count, Sum, or Avg.

If you want a new column created that performs calculation, you enter the
expression into a new blank column in the grid. Your expression might look
like:

Order_Count: {your expression here]

You might want to search the web for SQL QUERY SYNTAX.
 
B

Bren Pierce

Thanks Duane, I'll give it a try

Duane Hookom said:
Order_Count seems to be a aggregation. These are enabled in your query design
by selecting View->Totals. This will aggregate your records and generally
require setting the Total: row in the query to something like Group By,
Count, Sum, or Avg.

If you want a new column created that performs calculation, you enter the
expression into a new blank column in the grid. Your expression might look
like:

Order_Count: {your expression here]

You might want to search the web for SQL QUERY SYNTAX.
--
Duane Hookom
Microsoft Access MVP


Bren Pierce said:
How can I add a calculated field to a query ie. Order_Count: Order_Count
 

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