[AccessD] How to create a form with the VBA Extensibility Library

philippe pons phpons at gmail.com
Fri Aug 10 07:08:53 CDT 2007


 Hi all,

I just discovered the capabilities of this library that allows to
programmaticaly control the VBE.
I can now create a new class module with:
Application.VBE.ActiveVBProject.VBComponents.Add (vbext_ct_ClassModule)

or a standard module using the vbext_ct_StdModule constante.

But I can't find how to create a new Form!
There is a vbext_ct_MSForm constante, but it creates a UserForm, very
similar to the ones used in Excel, not an Acces Form.

Do you know if it is possible, and how to do that?

TIA,

Philippe



More information about the AccessD mailing list