Does anyone know how I can limit the number of child records that a user is allowed to created based on a field value found in the Master table?
For example:
I have a master record with a field called "New_Members", which is designed to take a integer value. I would like to limit the number of child records that can be inserted with the Master record based on what the user inputs in that field. So if user enters "5" in the "New_Members" field, then only 5 new child records could be created on that same page.
By the way... the context of this question assumes that a "add page" or add new record action is taking place with a master/child table... which means the form values are not already stored in the DB.
I did find a post that helps with this problem, but its not what I am looking for: http://www.asprunner.com/forums/topic/9883-limit-number-of-records/pagep34074hllimitfromsearch1&#entry34074
What I need is to add page to warn me right away once the user attempts to created more than the allowed number of child records. Remember, the child records are always shown as "inline add" when adding them via a master/child add new page form... thus, it would be nice to have a message pop-up in that child section when user clicks on "Inline Add" button (assuming they exceed the quantity as established on the Master section of the form).
Cheers,