If this is forms, you can use for example
Validating[
^] event to check if the text box contains valid values.
So when the program start, window opens etc, fetch all necessary information to for example a data table and use that in your validation.