Doing a Count in Access 2013 Query -- How to?

  • Thread starter Thread starter WWGD
  • Start date Start date
  • Tags Tags
    Count
AI Thread Summary
To perform a count in an Access 2013 query, using the Sigma (Σ) function is essential, but it may not have worked for the user initially. To define a new column based on the values of two other columns, the correct syntax involves using an expression like "varname: [field_i]*[field_j]". This allows the creation of derived fields through arithmetic operations. The discussion highlights the importance of proper syntax in queries to achieve desired results. Understanding these functions is crucial for effective data manipulation in Access.
WWGD
Science Advisor
Homework Helper
Messages
7,679
Reaction score
12,405

Homework Statement


I have a data table and I am doing a query on some of the attributes.[/B]

Homework Equations

The Attempt at a Solution


I think I need to use ## \Sigma ## in the menu bar, but that has not worked.

I know how to return all other query values, but not how to do a count.

Thanks.[/B]
 
Physics news on Phys.org
Are you just trying to add the values of successive cells?
It would look like this: =SUM(A1:A10)
 
Thanks Borg, sorry, I was about to say I got it. My new question is how to define a new column that uses the values of two other columns.
I tried :

New Column : (Column i)*( Column j )

Do I need an = after the colon?
 
Answering my on question: to define a new variable 'varname' , (as a field ) as the product of other fields , we set, in any field entry of the query,

varname: [ field_i, ]* [ field_j ]

of course, one may define new "derived" fields using other arithmetic or logical operations, or maybe both.
 

Similar threads

Replies
1
Views
2K
Replies
51
Views
5K
Replies
4
Views
2K
Replies
1
Views
2K
Replies
3
Views
2K
Replies
6
Views
2K
Back
Top