I have a weird problem I can't seem to get a grasp on.
I have a split database in Access2K. I have the code below to check the link to the backend:
My problem is, when the backend isn't there, I get a runtime error (3024) that breaks on this line: "Set rst = CurrentDb.OpenRecordset("dbsystbl_DLLFiles")"
Now the weird part is, this used to work. It would trap the error and open the frm_LinkDatabase.
I don't understand why my error is not being trapped now. Does anyone have any suggestions?
I have a split database in Access2K. I have the code below to check the link to the backend:
Code:
Function Check_Links() As Boolean
On Error GoTo Error_Handler
'Checks for the connection to the backend
Check_Links = False
Set rst = CurrentDb.OpenRecordset("dbsystbl_DLLFiles")
If rst.RecordCount > 0 Then
Check_Links = True
rst.Close
Set rst = Nothing
End If
Error_Handler_Exit:
Exit Function
Error_Handler:
Set rst = Nothing
Check_Links = False
DoCmd.OpenForm "frm_LinkDatabase"
DoCmd.Close acForm, "frm_MainMenu"
Err.Clear
Resume Error_Handler_Exit
End Function
Now the weird part is, this used to work. It would trap the error and open the frm_LinkDatabase.
I don't understand why my error is not being trapped now. Does anyone have any suggestions?
Last edited: