You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

field edit issue

1 reply [Last post]
Guest's picture
Guest

If (SCH_STOCK_PARMS.SCH_OVERRIDE_PD.Value < "1" Or
SCH_STOCK_PARMS.SCH_OVERRIDE_PD.Value > "13") Then
Error ("Override Period must be between 1 and 13. Please adjust your Override Period entry.");
End-If;

does not except values other than 1 and 13. I am confused

Lepa's picture
User offline. Last seen 1 year 49 weeks ago. Offline
Joined: 06/23/2008
Posts: 591
Re: field edit issue

If the value MUST be between 1 and 13 then you should check if the value is greater than 1 AND less than 13.

If (SCH_STOCK_PARMS.SCH_OVERRIDE_PD.Value > "1" AND
SCH_STOCK_PARMS.SCH_OVERRIDE_PD.Value < "13") Then
      rem-- do nothing, value is between 1 and 13
else
     Error ("Override Period must be between 1 and 13. Please adjust your Override Period entry.");
End-If;

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog