jeremy.lankenau
Registered User.
- Local time
- Yesterday, 21:43
- Joined
- Feb 19, 2015
- Messages
- 32
Hi all,
I'm an HR professional, but because I'm "okay" with computers I've been tasked with an HR database that tracks the time it takes to hire a new employee. Help would be appreciated because my attempts to find the answer has proved fruitless so far..
Working on a report that uses the datediff function to determine the number of days between two dates. I have about twelve of these columns, and all are working as they should.
I have three columns, TotalTime, HRTime, and ManagerTime. I get the "enter parameter" box when trying to do an avg function on these columns
For TotalTime control source, I have: =DateDiff("d",[StartDate], [EndDate])
For HRTime I have: =Nz([HR_AppBToSRD],0)+Nz([HR_PDRev],0)+Nz([HR_PDtoDA],0)+Nz([HR_DAtoVA],0)
This adds up the total HR times. I'm using the Nz function since sometimes the dates are null and I still need to know the total days it's been worked. The ManagerTime is very similar to the HRTime.
Now, I get the enter parameter box when I create a text box on the report and set the control source to: = avg ([HR_Time]) . Same is true for TotalTime and ManagerTime. I'm able to do Sum's and Count's no problem (and have IIf's and what not in there as well), but I'm using other fields that don't use the DateDiff function.
From what I've read, the result of the datediff function should return an integer. I've tried using the round function and casting as a str or dbl but I still get the enter parameter box.
I've tried using access help and searching the web but haven't come up with a solution yet, so any help would be greatly appreciated.
Jeremy
I'm an HR professional, but because I'm "okay" with computers I've been tasked with an HR database that tracks the time it takes to hire a new employee. Help would be appreciated because my attempts to find the answer has proved fruitless so far..
Working on a report that uses the datediff function to determine the number of days between two dates. I have about twelve of these columns, and all are working as they should.
I have three columns, TotalTime, HRTime, and ManagerTime. I get the "enter parameter" box when trying to do an avg function on these columns
For TotalTime control source, I have: =DateDiff("d",[StartDate], [EndDate])
For HRTime I have: =Nz([HR_AppBToSRD],0)+Nz([HR_PDRev],0)+Nz([HR_PDtoDA],0)+Nz([HR_DAtoVA],0)
This adds up the total HR times. I'm using the Nz function since sometimes the dates are null and I still need to know the total days it's been worked. The ManagerTime is very similar to the HRTime.
Now, I get the enter parameter box when I create a text box on the report and set the control source to: = avg ([HR_Time]) . Same is true for TotalTime and ManagerTime. I'm able to do Sum's and Count's no problem (and have IIf's and what not in there as well), but I'm using other fields that don't use the DateDiff function.
From what I've read, the result of the datediff function should return an integer. I've tried using the round function and casting as a str or dbl but I still get the enter parameter box.
I've tried using access help and searching the web but haven't come up with a solution yet, so any help would be greatly appreciated.
Jeremy