>I have a class that handles updates/adds/deletes for a passed view. Everything works fine, but I have a methodology question. One of the methods (UpdateKeyFields) is used to handle populating key fields and the control field with required data when adding a record. I use a case statement that has specific criteria depending on the view passed. I would like to have the class perform entirely independently and having this conditional method bothers me. It's no big deal to modify it for different views within the application - I just feel it should be done differently. Any ideas? Thanks!
>
>Regards, Renoir
Can you show some code, so we can suggest, how to make it generic?
If it's not broken, fix it until it is.
My Blog