i have a textbox in a form. Where i want it to calculate the total of hours for different employees in different month.
when i use "=sum([hour])" it gives the the total of all employee in all of the monthes.
and when i use Dsum as " = DSum( "[Hour]", "[tablename]", "[MonthID]" =1)", it gives me the total of all employee in January.
my question is, what should i do to make it only calculate the total hour of only the one specific employee and one specific month.
when i use "=sum([hour])" it gives the the total of all employee in all of the monthes.
and when i use Dsum as " = DSum( "[Hour]", "[tablename]", "[MonthID]" =1)", it gives me the total of all employee in January.
my question is, what should i do to make it only calculate the total hour of only the one specific employee and one specific month.
Comment