The SQL for your query would look like:
SELECT Sum(RegistrationFee)
FROM MyTable
WHERE FeeDescription = "FullFee"
To create this through the query interface, select your table and drag both
RegistrationFee and FeeDescription into the grid. Change the query into a
Totals query (it's a choice on the View menu, or you can select the Sigma
icon from the tool bar). When you do that, a new row appears in the grid
labelled "Total", with both cells set to Group By by default. Change the
Group By to Sum under Registration Fee, and to Where under FeeDescription.
Type "FullFee" as the criteria under FeeDescription.
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
Kharndt said:
Can someone please help me with what is likely a very elementary
expression? I would be so appreciative!