paulhenley
Registered User.
- Local time
- Today, 09:50
- Joined
- Apr 16, 2002
- Messages
- 23
I have a calculated field that calulates the last day of the following month based on a value from another field. The formula used works very well -
=DateSerial(Year([itprininvdat]),(Month([itprininvdat])+2),1)-1
The problem I have is that if there is no value in the [itprininvdat] field the calulation result shows #Error. I have always got round this by using an IIF statement, but on this occassion I get a syntax error stating that I have entered a comma without a preceding value or identifier. I think the IIF statement does not like the commas in the dateserial section, but I cannot find away around it.
Please can anyone help
=DateSerial(Year([itprininvdat]),(Month([itprininvdat])+2),1)-1
The problem I have is that if there is no value in the [itprininvdat] field the calulation result shows #Error. I have always got round this by using an IIF statement, but on this occassion I get a syntax error stating that I have entered a comma without a preceding value or identifier. I think the IIF statement does not like the commas in the dateserial section, but I cannot find away around it.
Please can anyone help