INTERCETTAZIONE ERRORE

  • fbmonte
  • Avatar di fbmonte Autore della discussione
  • Visitatori
  • Visitatori
8 Anni 1 Settimana fa #324 da fbmonte
fbmonte ha creato la discussione INTERCETTAZIONE ERRORE
Private Sub delete_record_Click()


On Error GoTo Err_SomeName ' Initialize error handling.
' Code to do something here.

DoCmd.RunCommand acCmdDeleteRecord

Exit_SomeName: ' Label to resume after error.

Form_frm_maganastri_dett.Requery
DoCmd.Close


Err_SomeName: ' Label to jump to on error.


If Err.Number <> 0 Then

DoCmd.RunCommand acCmdDeleteRecord
'MsgBox "HELLO"
'MsgBox Err.Number & Err.Description ' Place error handling here.
Resume Exit_SomeName ' Pick up again and quit.

End If


End Sub

Si prega Accedi a partecipare alla conversazione.

Tempo creazione pagina: 0.095 secondi
Powered by Forum Kunena