patricespencer
New member
- Local time
- Today, 02:14
- Joined
- Jun 22, 2001
- Messages
- 6
I have a form with the following expression:
NRD: IIf(Left(DateAdd("yyyy",65,[E DOB]),2)="12" And Mid(DateAdd("yyyy",65,[E DOB]),4,2)>16," 01/01/" & Right(DateAdd("yyyy",65,[E DOB]),4)+1,IIf(Mid(DateAdd("yyyy",65,[E DOB]),4,2)<=16,Left(DateAdd("yyyy",65,[E DOB]),2) & "/01/" & Right(DateAdd("yyyy",65,[E DOB]),4),Left(DateAdd("yyyy",65,[E DOB]),2)+1 & "/01/" & Right(DateAdd("yyyy",65,[E DOB]),4)))
My problem is that this formula works in some releases and not in others. I have a system with 9.0.2720 and it works but on my other system that is MS Office 2000 premium that same formula does not work, it give me an #error in the field.
Does anyone have any idea why that would be.
Thanks
NRD: IIf(Left(DateAdd("yyyy",65,[E DOB]),2)="12" And Mid(DateAdd("yyyy",65,[E DOB]),4,2)>16," 01/01/" & Right(DateAdd("yyyy",65,[E DOB]),4)+1,IIf(Mid(DateAdd("yyyy",65,[E DOB]),4,2)<=16,Left(DateAdd("yyyy",65,[E DOB]),2) & "/01/" & Right(DateAdd("yyyy",65,[E DOB]),4),Left(DateAdd("yyyy",65,[E DOB]),2)+1 & "/01/" & Right(DateAdd("yyyy",65,[E DOB]),4)))
My problem is that this formula works in some releases and not in others. I have a system with 9.0.2720 and it works but on my other system that is MS Office 2000 premium that same formula does not work, it give me an #error in the field.
Does anyone have any idea why that would be.
Thanks