I have an ASP Page which contains a form that will insert/update records in a Database. I want to use the same asp page to do this (in other words not build one asp page to insert records and another to update records). I'm sure I can do this by setting a flag in a hidden field, and depending on what the flag is, it either inserts or updates the record. Is it better to fill my asp page with a lot of little "If..Then" statements to determine which fields to display (Depeding on if it is an insert or update)...or is it better to create a huge "If then...If Else then" and repeat my code within those two blocks, changing it slightly depending on if it as insert or update. I hope that my explanation is clear.