Hi All,
I am looking at this Access Database that was working fine up until last Monday and now it has stopped working.
When I click one of the buttons after few seconds my access database just closes.
The button I am clicking has the following VBA code behind it:
Code:
Private Sub cmdMenu2_Click()
On Error GoTo errorhandler
DoCmd.OpenForm "frmLimits" 'it gets here and then it goes to the next block of code below
Exit Sub
errorhandler:
MsgBox Err.Number & " : " & Err.Description
End Sub
Code:
Private Sub Form_Open(Cancel As Integer)
Static MouseHook As Object
Set MouseHook = NewMouseHook(Me) 'from here it goes to the next block of code which I have attached as a snaphot because the code is too big to paste on here.
End Sub
In that attached snapshot, where the yellow cursor is is where the application closes.
Does anyone know what the cause and fix is please?
Thank You