I have been trying to figure this out all day. Any help would be greatly appreciated!
I have the following IIF statement in the control source of a textbox on a report:
=IIF([StartDate]=#8/15/2011#,[EmpName],"")
I simply want it to look at a table that has Employee information, and if the start date = 8/15/2011, then I want it to return the employee name.
I have the record source of the report set to that same employee information table. When I view the report, it doesn't give me an error or anything, it's just blank.
Any ideas why this isn't working? Could the formatting of the dates have anything to do with it? Although, I tried to change the date formatting and it still didn't pull. The text box is in the detail section of the report. There are no spelling errors etc. in the table or field names. I have done statements like this is the past and had no problem. Ack!
Thanks!
I have the following IIF statement in the control source of a textbox on a report:
=IIF([StartDate]=#8/15/2011#,[EmpName],"")
I simply want it to look at a table that has Employee information, and if the start date = 8/15/2011, then I want it to return the employee name.
I have the record source of the report set to that same employee information table. When I view the report, it doesn't give me an error or anything, it's just blank.
Any ideas why this isn't working? Could the formatting of the dates have anything to do with it? Although, I tried to change the date formatting and it still didn't pull. The text box is in the detail section of the report. There are no spelling errors etc. in the table or field names. I have done statements like this is the past and had no problem. Ack!

Thanks!