title: Forms Suppress Error Message And Catch frm-40350
body: <p>I have the following code on a button's <code>WHEN-BUTTON-PRESSED</code> trigger</p>
  
  <pre><code>BEGIN   
  
  SYNCHRONIZE;
  populate_maximo_records;
  
  END;
  </code></pre>
  
  <p>There will be a scenario that there will not be any records ti populate in block. If there are no records, currently it is throwing the following error message</p>
  
  <pre><code>frm-40350 query caused no records to be retrieved
  </code></pre>
  
  <p>Instead, I would like to suppress the above message and display a customized message.
  How can I do this?</p>