Help with adding controls at runtime

X

X-Men

I want to add a textbox (commandbutton, etc) against each record in a
subform, but the CreateControl method can only do it at the design time.
Can someone tell me how to do it at runtime using vba??

Thanks in advance,

Xiaowei
 
J

Jim Allensworth

I want to add a textbox (commandbutton, etc) against each record in a
subform, but the CreateControl method can only do it at the design time.
Can someone tell me how to do it at runtime using vba??

Thanks in advance,

Xiaowei

That is not a good thing to do - even if you find a way. Because there
is a limit to how many controls a form will hold (AIR, around 255).
Even if you delete them they still count.

- Jim
 

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

Top