local llError on error llError = .T. * The following is the line (or lines) that could cause an error use MyTable on error && See note (1) if llError MessageBox("The file could not be opened; please try again later.") * Or do some more detailed analysis, e.g. with aerror() else * Go ahead, and do whatever you would with the table endifNote 1: This part gets a little more complicated if you already have a previous ON ERROR, which you must restore in this case.