Marlon
|
| Posted: 04/11/2005, 4:08 PM |
|
How can I display an alert message if the value of field1 is greater than value of field2.
I need to display a message if the user try to buy (field1) more items than those in the inventary (field2), both values are displayed in the same form. If the value in field1 is greater than value of field2, then the message is displayed and the user cant save the order.
|
|
|
 |
eiden
Posts: 34
|
| Posted: 04/11/2005, 11:00 PM |
|
You could add some custom code to your forms "On Validate" event:
with formname
If .field1.value > .field2.value then
.errors.addError("Your errormessage")
end if
end with
You get the idea....
|
 |
 |
|