Read “How to Trap ODBC Login Error Messages in Access” at https://support.microsoft.com/support/kb/articles/Q124/9/01.asp?LN=EN-US&SD=gn&FR=0%3CP%3E.