The following coding checks an ODBC table to see if the connection is OK.
How do I get it to tell the macro that runs it to stop if the connection is bad?
Public Function IsTableThere()
On Error GoTo Err_IsTableThere
DoCmd.OpenTable "PS$O_Table"
DoCmd.Close acTable, "PS$O_Table", acSaveNo
Exit_IsTableThere:
Exit Function
Err_IsTableThere:
Err.Clear
End Function
Thank You
How do I get it to tell the macro that runs it to stop if the connection is bad?
Public Function IsTableThere()
On Error GoTo Err_IsTableThere
DoCmd.OpenTable "PS$O_Table"
DoCmd.Close acTable, "PS$O_Table", acSaveNo
Exit_IsTableThere:
Exit Function
Err_IsTableThere:
Err.Clear
End Function
Thank You