How to handle errors on broken table links
I have recently updated my linked tables to use UNC links. However when I test the front end using a machine which does not have the mapped drives, my error handling procedure fails in line Set rs = CurrentDb.OpenRecordset("SELECT ItemName FROM tblDonatedItems") with error number 3044 Is there a way of trapping the error so that the procedure can keep running? Please see below: Private Sub Form_Load() On Error Resume Next Dim rs As DAO.Recordset Set rs = CurrentDb.OpenRecordset("SELECT ItemName FROM tblDonatedItems") If Err.Number <> 0 Then MsgBox "Error Number: " & Err.Number & " " & Err.Desc
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.