G
Guest
Hi, I have a c# program for compacting msaccess databases and I’m now setting
up the exception handling.
For 2 different conditions I get the following messages.
System.Runtime.InteropServices.COMException (0x80040E4D): Not a valid
account name or password.
System.Runtime.InteropServices.COMException (0x80004005): You attempted to
open a database that is already opened exclusively by user 'Test1' on machine
'Dta-TRP'. Try again when the database is available.
I need to show a customized message to show the exception. Is there anyway
to get the above exception text so that I can modify it slightly?
Thanks in advance.
up the exception handling.
For 2 different conditions I get the following messages.
System.Runtime.InteropServices.COMException (0x80040E4D): Not a valid
account name or password.
System.Runtime.InteropServices.COMException (0x80004005): You attempted to
open a database that is already opened exclusively by user 'Test1' on machine
'Dta-TRP'. Try again when the database is available.
I need to show a customized message to show the exception. Is there anyway
to get the above exception text so that I can modify it slightly?
Thanks in advance.