[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework

Microsoft.Office.Interop.Access

Evan Camilleri

8/1/2008 8:18:00 PM

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.holi...
http://www/dotnetmushroom.com
http://www.mobilesa...