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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get Total Amount for Year To Date

Status
Not open for further replies.

Happy2

Programmer
Aug 10, 2001
64
US
Hi all,

Can anyone please help me to sum up all the year-to-date amounts of a spicific employee.
I would like to show the YTD amount on my form and report.

Thanks in advance for your help.
 
You could use Select sum(amount) from tbl_a where employee# = employee_Specified. You can include a test for the year if there is more than this years data in the database.

I you needed the totals for all you can add a group by.

hope this helps....
judie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top