Hi all I just have a question about how people manage Data Validation. I currently have some very ugly code (a series of if-then-else statements for a very large number of fields) in a function that is called by the BeforeUpdate event, but I am looking for some insight into how other people handle checking things. I can't set everything at the table level because the vast majority of the fields are of the type "If field1 = val1, then fields 2-10 can be 1-5 and are mandatory; if field1 = val2, then fields 2-10 can be 1-5 or optional." I am definitely planning a rewrite once I have some better options, so know that any suggestions will be duly considered and greatly appreciated. And to clarify, I am much more interested in solutions that others employ to handle validation rather than wanting someone to rewrite my mess. I want to learn best practices from those who know. If I can't figure out how to apply what I learn, I will ask further questions.
Thanks,
Mike
"Maturity is a bitter disappointment for which no remedy exists, unless laughter can be said to remedy anything."
-Vonnegut
Thanks,
Mike
"Maturity is a bitter disappointment for which no remedy exists, unless laughter can be said to remedy anything."
-Vonnegut