Yes, there is "magic" auto-wiring involved. It comes from the ConnectObject method in WScript (the second statement below):
Dim EasyDAClient: Set EasyDAClient = CreateObject("OPCLabs.EasyDAClient.5.2")
WScript.ConnectObject EasyDAClient, "EasyDAClient_"
This is described here:
msdn.microsoft.com/en-us/library/ccxe1xe6(v=vs.84).aspx , but is specific to VBScript - or, more precisely, to VBScript in WSH (Windows Scripting Host).
In a "full" Visual Basic (VB6), or VBA (as in Access), it is done differently. Basically, you need to:
1. Reference the "OPC Labs EasyOPC Type Library" (in Tools -> References)
2. In some object module you are writing, declaring the variable of the EasyDAClient type with the "WithEvents" keyword, such as:
Public WithEvents Client As EasyDAClient
3. Where it is appropriate in your code, instantiate the object:
Set Client = New EasyDAClient
4. You can create event handlers like this: In the upper left corner of the code window, expand the drop-down list, it will show (among others) the "Client" object - select it. Then, in the upper-right corner of the windows, you can choose from the events provided by the "Client", and when you select one, and event handler procedure skeleton will be automatically created for you in the code.
I hope this helps