add control at runtime

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In VBA, how can I dynamically add controls to an Access from at runtime.
 
You cannot do that unless you open the form in design view, e.g.:
DoCmd.OpenForm "Form1", acDesign

Then see help on CreateControl().

This approach is generally not useful unless you are writing your own
wizards.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top