I'm trying to convert a password protected ms access database to ACCDE
I tried a lot of things like the following :
Microsoft.Office.Interop.Access.Application AccApp = new Microsoft.Office.Interop.Access.Application();
string MyFile = Environment.CurrentDirectory + "\\Baseet.accdb";
string MyCompiledFile = Environment.CurrentDirectory + "\\Baseet.accde";
AccApp.Visible = true;
AccApp.OpenCurrentDatabase(MyFile, false, "017014A");
AccApp.RunCommand(AcCommand.acCmdAppMaximize);
AccApp.SysCmd (603 , MyFile , MyCompiledFile);
But I got this compiler error on 603 :
Cannot convert from int to Microsoft.Office.Interop.Access.AcSysCmdAction
I looked at the documentation for Microsoft.Office.Interop.Access.AcSysCmdAction
here But I couldn't find that command although it exists in VBA , It turned out to be undocumented command.
How can I fix it , Any help appreciated .