>Hello All,
>We have a dbc where we have set up many rules for field validation.
>We can control the message in the message property but is there some way to control the actual messagebox() that appears when the rules are violated. We are gettting the messagebox with 3 buttons that are OK, Revert and Help. We Actually only want an OK button?
>
>Thanks
>
>Sandy
If you can put your validation at application level instead of DBC level you can add a validation object that can be placed on each form or be part of your main application-level object. Each textbox can call this object as part of its valid() method (subclassed of course so you don't add code to every textbox).
While the code can be used in all apps that use the tables/DBC this will NOT work if you're working with the data from the command window.
We have found that the only code we absolutely MUST have at the DBC level is the assigning of unique IDs when adding a record.
HTH
Barbara