Creating a Form from within a Module

  • Thread starter Thread starter Terry
  • Start date Start date
T

Terry

Is there away to create a form from within a module
through VBA or Visual Basic?

I want to create the form programmatically, add fields and
event code from within an Access module.

Thanks.

Terry
 
Is there away to create a form from within a module
through VBA or Visual Basic?

Yes; there are two chapters on this technique in the _Access xx
Developer's Handbook_ Vol. I, far more than I can reproduce here.
Check the online help in the VBA Editor for the CreateForm and
CreateControl methods.
 
Its also worth looking at the SaveAsText and LoadFromText functions, which
allow you to save and load a form as text. Of course, when you have a form
as a text file, you can modify it how you like...

--
Regards,

Adrian Jansen
J & K MicroSystems
Microcomputer solutions for industrial control
 
Back
Top