I am trying to only pull records that are between 04/01/2011 and 05/31/2011. I have access 2007, and here is my current code.
Days Worked: IIf([Emp Date]![Term Date]>#4/1/2011# Or [Emp Date]![Term Date]<#5/31/2011#,IIf([Emp Date]![Rehire Date] Is Not Null,DateDiff("d",[Emp Date]![Rehire Date],"5/31/2011"),DateDiff("d",[Emp Date]![Hire Date],"05/31/2011")),Null)
I have been testing and adding slowly, and everything worked until I added the extra part to pull anything greater than 04/01/2011. Any ideas how to fix this would be great. The resoluts no longer separate anything at all and at least it used to pull only the stuff before 05/31. Thanks
Days Worked: IIf([Emp Date]![Term Date]>#4/1/2011# Or [Emp Date]![Term Date]<#5/31/2011#,IIf([Emp Date]![Rehire Date] Is Not Null,DateDiff("d",[Emp Date]![Rehire Date],"5/31/2011"),DateDiff("d",[Emp Date]![Hire Date],"05/31/2011")),Null)
I have been testing and adding slowly, and everything worked until I added the extra part to pull anything greater than 04/01/2011. Any ideas how to fix this would be great. The resoluts no longer separate anything at all and at least it used to pull only the stuff before 05/31. Thanks