You will need to reference Microsoft.Office.Interop.Access (I choose version 11), and Office 11.
I am not sure I have the argument right for
AcCommand.acCmdZoom10
but this code will work for you.
Type applicationType = Type.GetTypeFromProgID("Access.Application");
Microsoft.Office.Interop.Access.Application application = null;
try
{
application = Activator.CreateInstance(applicationType) as Application;
if (application != null)
{
application.RunCommand(AcCommand.acCmdZoom10);
application.AutomationSecurity = Microsoft.Office.Core.MsoAutomationSecurity.msoAutomationSecurityLow;
application.OpenCurrentDatabase("F:\\KF.mdb", false, null);
application.UserControl = true;
}
}
finally
{
if (application != null)
{
application.Quit(AcQuitOption.acQuitSaveAll);
}
}