E
Evan Camilleri
i opened a form using DoCmd, then I used
Microsoft.Office.Interop.Access.Application MSAccess = new
Microsoft.Office.Interop.Access.Application();
MSAccess.OpenCurrentDatabase(....);
MSAccess.DoCmd.OpenForm("formname",...);
Microsoft.Office.Interop.Access.Form f = MSAccess.Forms["formname"];
..........and I get some COM error!!!
"Unable to cast COM object of System.__ComObject to interface type
'Microsoft.Office.Interop.Access.Form'. The operation failed because the
QueryInterface call on the COM components for the ...."
Evan Camilleri
http://www.holisticrd.com
http://www/dotnetmushroom.com
http://www.mobilesalesman.com
Microsoft.Office.Interop.Access.Application MSAccess = new
Microsoft.Office.Interop.Access.Application();
MSAccess.OpenCurrentDatabase(....);
MSAccess.DoCmd.OpenForm("formname",...);
Microsoft.Office.Interop.Access.Form f = MSAccess.Forms["formname"];
..........and I get some COM error!!!
"Unable to cast COM object of System.__ComObject to interface type
'Microsoft.Office.Interop.Access.Form'. The operation failed because the
QueryInterface call on the COM components for the ...."
Evan Camilleri
http://www.holisticrd.com
http://www/dotnetmushroom.com
http://www.mobilesalesman.com