[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.interop

How to pass on / throw exceptions from my .Net-DLL to MS Access?

Olaf Rabbachin

2/3/2007 1:55:00 PM

Hi folks,

I have a (VB.Net-) DLL that I'm using from MS Access 2003.
Everything's pretty fine except for one thing - When I throw or pass on
exceptions from within the .Net-DLL, all I get from within MS Access is Err
#440 ("Automation Error").

I'm passing on exceptions like this:
Throw ex
.... and I'm throwing my own exceptions like this:
Throw New ExternalException("Oops", [some enum])

Is there something wrong with that, or why do I only get #440 in VBA ..?

Also, the GetLastError-API doesn't return anything either, that is, I'll
always get #0 (= everything alright).

Cheers,
Olaf