Karen
|
| Posted: 04/09/2003, 3:01 AM |
|
It's just a simple question but I don't know how to do it. What's the syntax for before insert event error message? From the help, I have a clue to use object.Errors.AddError but don't know the exact syntax. I'm using PHP. Can somebody pls help? Thanx.
|
|
|
 |
Karen
|
| Posted: 04/09/2003, 5:21 PM |
|
Ok, I found out the syntax for Errors.addError and I have this in the custom code of the form Before Insert event after testing for a condition.
$products->Errors->addError("Rank already exists!");
I get the error message displayed but strangely, the record is still inserted. Do I have to do something else other than setting the error message only? Pls help. Thanx.
|
|
|
 |
|