J
Jake
I am using an MS Access database that is opened using automation by a program
writen in VB.NET.
Many MS Access automation objects have several events, mostly corresponding
to the events exposed to VBA. For example, a CommandButton object has Click,
DblClick, Enter, Exit, etc.
If I create an object (say a commandbutton) in VB.Net and then add it at
runtime to a form in Access then I can handle all of its events normaly and
as expected.
However, if I attempt to handle an event for a commandbutton that already
exists on the access form (that is one I did not create using VB.Net) then I
get a COMException with HRESULT: 0x80040202.
I have not been able to find any information about this error or to get any
further information.
Has anyone experienced this problem or have any ideas?
Jacon
writen in VB.NET.
Many MS Access automation objects have several events, mostly corresponding
to the events exposed to VBA. For example, a CommandButton object has Click,
DblClick, Enter, Exit, etc.
If I create an object (say a commandbutton) in VB.Net and then add it at
runtime to a form in Access then I can handle all of its events normaly and
as expected.
However, if I attempt to handle an event for a commandbutton that already
exists on the access form (that is one I did not create using VB.Net) then I
get a COMException with HRESULT: 0x80040202.
I have not been able to find any information about this error or to get any
further information.
Has anyone experienced this problem or have any ideas?
Jacon