Barbara265
Technical User
I am using Crystal 7 and have installed the UFL to enable use of the DateAdd function. (Thanks to Ken Hamady for pointing this out in his FAQs)
I want to determine if a 30, 60, or 90 day review is due based on the number of days that have elapsed since the recent hire date. I have tried the following:
If DateAdd('d',30,DateTime({EEmploy.EeDateLastHire})) <= 30 Then
'30 Day Review'
When I check for errors, Crystal tells me it is expecting a DateTime field where I have "<= 30". I have tried not using the DateTime function to convert EEmploy.EeDateLastHire and Crystal balks at that too.
Clearly I'm not using the DateAdd function correctly and am looking for advice on what I need to do to make this work.
Thanks,
Barb
I want to determine if a 30, 60, or 90 day review is due based on the number of days that have elapsed since the recent hire date. I have tried the following:
If DateAdd('d',30,DateTime({EEmploy.EeDateLastHire})) <= 30 Then
'30 Day Review'
When I check for errors, Crystal tells me it is expecting a DateTime field where I have "<= 30". I have tried not using the DateTime function to convert EEmploy.EeDateLastHire and Crystal balks at that too.
Clearly I'm not using the DateAdd function correctly and am looking for advice on what I need to do to make this work.
Thanks,
Barb