How to learn ActiveX controls from MS Access firewall forms using vb.net
2 answers
I'm not sure what you want. Try this: go to MS Access and create a new property which is the number of controls on the form. In VBA, me.Countrols.Count. Open the form using Access Automation. OnFOrmLoad () writes the number of controls to a text file along with the name of the form and then closes the form. After that open the text file in VB.net. It's indirect, but it will work.
How to automate Microsoft Access with Visual Basic .NET
To automate:
Dim oAccess As Access.Application
' Start a new instance of Access for Automation:
oAccess = New Access.ApplicationClass()
' Open a database in exclusive mode:
oAccess.OpenCurrentDatabase(filepath:="c:\mydb.mdb", Exclusive:=True)
oAccess.DoCmd.OpenForm(FormName:="Employees")
0
source to share