This topic is locked

Display error message based on fields value

4/1/2010 7:05:46 PM
ASPRunnerPro General questions
W
wisdom2009 author

Hi,
On the add page i have the following fields :

Date , Name, Team, Hours Worked. The HoursWorked Field is depending on the Date field. When a user choose a Date the Hours worked will be automatically populated( i have this part working). What i am trying to do is to add a Snippet that will evaluate the field Hours Worked and if it's greater than 10 Hours an error message will be displayed if less no message. I tried to use the code below but it did not work
Function HoursWorked()

if VALUES("dHoursWorked")> "10" then

response.write "Hours Worked is Greater than 8. Please contact your dealership to solve the issue"

else

response.write ""

end if

End Function

any help would be appreciated
Thank you

W
wisdom2009 author 4/4/2010



Hi,
On the add page i have the following fields :

Date , Name, Team, Hours Worked. The HoursWorked Field is depending on the Date field. When a user choose a Date the Hours worked will be automatically populated( i have this part working). What i am trying to do is to add a Snippet that will evaluate the field Hours Worked and if it's greater than 10 Hours an error message will be displayed if less no message. I tried to use the code below but it did not work
Function HoursWorked()

if VALUES("dHoursWorked")> "10" then

response.write "Hours Worked is Greater than 8. Please contact your dealership to solve the issue"

else

response.write ""

end if

End Function

any help would be appreciated
Thank you


Any Help??

Sergey Kornilov admin 4/4/2010

Not sure how do you use this function.
I recommend to post your app to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL.