Master/Details Validation

Hi,

  here's the behavior:
  1. user add record in Master
  2. user tries to leave master form.

I want to have a validation that you can’t leave that master form, and you must add records in detail form.

how can you create this validation?

help with this??

thanks

You can never force that/prevent that because the user can select something from the menu, hit a return button of the browser, or even type something in into the browser. You must take precautions and design your application differently. In the detail you can use a macro to set a master value. So one option might be to set a switch on the master ‘temporary’ and change that to ‘permanent’ as soon as there’s at least one detail. Otherwise you can delete the record (??)