I follow the instruction from
Automate Microsoft Office Access 2003 from Microsoft Visual Basic .NET
but got en error said
"The command or action 'OpenForm' isn't available now."
How to fix it? I used vs2008 and office 2003. Here is codes below.
Imports System.Data.OleDb
Imports Microsoft.Office.Interop.Access
Imports Microsoft.Office.Interop
...
Dim oAccess As Access.Application
oAccess = New Access.ApplicationClass
oAccess.DoCmd.OpenForm(FormName:="frmMain", View:=Access.AcFormView.acNormal)
Automate Microsoft Office Access 2003 from Microsoft Visual Basic .NET
but got en error said
"The command or action 'OpenForm' isn't available now."
How to fix it? I used vs2008 and office 2003. Here is codes below.
Imports System.Data.OleDb
Imports Microsoft.Office.Interop.Access
Imports Microsoft.Office.Interop
...
Dim oAccess As Access.Application
oAccess = New Access.ApplicationClass
oAccess.DoCmd.OpenForm(FormName:="frmMain", View:=Access.AcFormView.acNormal)