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.
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.