How can I create a text box from code?

  • Thread starter Thread starter Jason Gyetko
  • Start date Start date
J

Jason Gyetko

I need to build a form on the fly using different variables, does anyone
know how I can create a text box from code? Thanks.
 
Hi Jason

You use the form's CreateControl method - look it up in the online help for
details.

It can be a bit of a hassle creating controls on the fly - for a start, the
form must be in design view. Unfortunately Access does not (yet!) have
control arrays like VB. Depending on your requirements, this is often best
achieved by adding hidden controls on your form and moving/resizing/making
them visible using code.
 
Back
Top