G
Guest
1. Can you find out what the validation rules are as set in a tables
definition (e.g. required=yes) are in VB code? I'm trying to design a
database so that the field validations are all in one place rather than have
some in the tables and some in the VB code. Would I be better off writing
validation procedures instead and just calling these?
2. I have a mandatory field but there is no sensible default so it starts
off as a null value. Whats the best way of handling this? I can't use
before_update as it only fires if the user visits and changes the field -
equally on_exit etc is no good as the user can avoid entering the field. I've
tried using a rule in the tables and trapping the form_error but this seems
perverse as I'd like to handle everything in the same way? Any ideas on how
to make it all neat and tidy much appreciated.
definition (e.g. required=yes) are in VB code? I'm trying to design a
database so that the field validations are all in one place rather than have
some in the tables and some in the VB code. Would I be better off writing
validation procedures instead and just calling these?
2. I have a mandatory field but there is no sensible default so it starts
off as a null value. Whats the best way of handling this? I can't use
before_update as it only fires if the user visits and changes the field -
equally on_exit etc is no good as the user can avoid entering the field. I've
tried using a rule in the tables and trapping the form_error but this seems
perverse as I'd like to handle everything in the same way? Any ideas on how
to make it all neat and tidy much appreciated.