Hi, Bruce.
Sorry for the delay. I went camping for the weekend.
By "Show Buttons Insert" you mean the insert button below (or above) the browse itself, not an in-row browse button?
Yes.
And basically you are wanting a different form to be used for Insert and Delete? Is there a Change button in the mix, or not?
The default Change button would work if the Delete procedure wasn't different from the Insert/Change procedure and needed to be the primary form procedure for the browse. Instead, I use an 'Other' button on the browse row that calls the Insert/Change memory form with the record ID, which triggers populating the memory form with the relevant data.
And lastly - On Insert, you want the memory form to clear the record presenting the user with a "blank form" whereas currently it presents it with a "pre-poulated" form?
Am I on the right track?
Almost. The memory form doesn't have to clear anything, it just has to skip the populating step. It is the existence of a passed record ID that triggers the populating and determines whether the parent record is updated or added on Save.
My current approach is to call the form for Insert as a separate sub item on menu, or having the Insert button and the browse as two separate items on a tab of a larger form when available. Works, but makes for a cluttered menu and inconsistent UI. Another alternative is to make a duplicate form for each of these situations, identical except of the populating and record update code. Easy to do, but future maintenance issues abound given the number of duplicates involved.
So the best situation would be having the Insert button pass another value that can be used to skip the populating routine, or having the Delete button procedure work without being the primary form procedure for the browse.
Second best, would be a way to include both a Insert button and a browse on a NetWebPage
Thanks