I am working on Access (XP).
I have a headcount table that has the following key fields:
Name
department
percent of time
start date
I am querying this table to determine a department's headcount per month. So, I have created 12 new fields (1-12, being the number of periods in a fiscal year) and the following equation for these fields:
1:IIF([ST DT]<8/1/2004,[PCT_TIME],"")
2:IIF([ST DT]<9/1/2004,[PCT_TIME],"")
etc.
Field "1" would give me the department's total headcount for July-04, "2" would give me the HC for Aug-04, etc. However, my result gives me blank cells for all - rather than the "PCT TIME" amount I'm looking for. I get the data type mismatch error msg when I put quotes on the dates (e.g. "8/1/2004").
Not sure how to fix - ideas?
Thanks!
I have a headcount table that has the following key fields:
Name
department
percent of time
start date
I am querying this table to determine a department's headcount per month. So, I have created 12 new fields (1-12, being the number of periods in a fiscal year) and the following equation for these fields:
1:IIF([ST DT]<8/1/2004,[PCT_TIME],"")
2:IIF([ST DT]<9/1/2004,[PCT_TIME],"")
etc.
Field "1" would give me the department's total headcount for July-04, "2" would give me the HC for Aug-04, etc. However, my result gives me blank cells for all - rather than the "PCT TIME" amount I'm looking for. I get the data type mismatch error msg when I put quotes on the dates (e.g. "8/1/2004").
Not sure how to fix - ideas?
Thanks!