Help with adding controls at runtime

  • Thread starter Thread starter X-Men
  • Start date Start date
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
 
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
 
Back
Top