T
tec-goblin
I have a C# application that uses access interop to do the following:
Microsoft.Office.Interop.Access.Application access = new
Microsoft.Office.Interop.Access.ApplicationClass();
access.AutomationSecurity =
Microsoft.Office.Core.MsoAutomationSecurity.msoAutomationSecurityLow;
access.OpenCurrentDatabase(@"TG Client.mdb", false, string.Empty);
And I get
"Microsoft Office Access can't open the database because it is missing, or
opened exclusively by another user."
This happened to me on Vista (so it could be UAC? I didn't have any problems
with the creation of Word documents, though).
btw, I've checked other paths (TG Client is saved on the Debug\bin folder),
and of course I don't have the application open.
Any suggestions? Thanks in advance!
Microsoft.Office.Interop.Access.Application access = new
Microsoft.Office.Interop.Access.ApplicationClass();
access.AutomationSecurity =
Microsoft.Office.Core.MsoAutomationSecurity.msoAutomationSecurityLow;
access.OpenCurrentDatabase(@"TG Client.mdb", false, string.Empty);
And I get
"Microsoft Office Access can't open the database because it is missing, or
opened exclusively by another user."
This happened to me on Vista (so it could be UAC? I didn't have any problems
with the creation of Word documents, though).
btw, I've checked other paths (TG Client is saved on the Debug\bin folder),
and of course I don't have the application open.
Any suggestions? Thanks in advance!