Dear John,
here's the exact thing i'd like to do
what should i write in the controlsource of a text box on a form to disply
the total of the agents whose skills are "TSLM" and shift "9:00" on the date
that equals the Form's date ,based on the below query
Date Shift Skills Total of agents
I know nothing about your form... is it based on this query? or
another query? Is it a single form or a continuous form?
The literal answer to your question would be to set the Control Source
of the textbox to something like
=DCount("*", "[tablename]", "[Skills] = 'TSLM' and [Shift] = #09:00#
And [Date] = #" & txtDate & "#")
assuming you have a textbox on your form named txtDate.
Note that Date is a bad choice of fieldnames, it's a reserved word.
John W. Vinson[MVP]