I have a project that contains several class modules, all of which work fine. Today I added a new class module and inserted my code and added a hook for it. The code is getting triggered by the SaveCustomer hook when I add a new customer, however I am getting the error message 'attempt to process com object failed, an unknown error occurred.' Which would seem to indicate that something was wrong with the code. So I stripped the code down so pretty much all I had was a msgbox, and I'm still getting the error message. Is this a problem with the hook or with the code that is triggered by the hook? Here's the code that I attempted to run:
Public Function Process(session As Object) As Boolean 'Dim posSession As QSRules.SessionClass Dim posSession As Object Set posSession = session
MsgBox "TEST"
Process = True End Function
Thank you, Kevin