Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sum problem

Status
Not open for further replies.

kathyc20

Programmer
Mar 7, 2001
96
CA
I have a table with the fields month which contains every month of the year and a field called personal_month which contains numeric values.

I need to write a query for my form that gives me the sum of all the personal_month records from the kms_table where month=January

example:

=Sum(kms_table.Personal_Month FROM kms_table WHERE(((kms_table.Month)='January')))

This query doesn't work

 
Your expression isn't a query. There is no Select keyword.

Select Sum(Personal_Month)As SumOfPersonal_Month
From kms_table
Where [month] = "January";

Paul

 
Kathyc20,
Please don't ask the exact same question in more than one forum. You have at least two threads going now on the same question.

Tell us which threads to stop replying to and direct us to the proper forum.

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top