How to create form check data duplicate

Hello,

how to How to create form check data duplicate with 3 criteria
Name School and Year
Popup message Data Duplicate or No

Thanks