Scenario : “ Account should has at least one opportunity otherwise, prevent to change the account type ”
Step 1: Create the field in Account object.
Step 2: Choose Rollup summary
Step 3: Summarize the Opportunity level and save
Step 4:Create the validation in Account Object like below.
We are the ISV Partners and Please reach us for custom development => www.merfantz.com