Adding textbox in Forms

G

gatarossi

Dear all,

How can I add via code a textbox in my form?

And the new textox is a unbound form? How can I vincule it with a
field in my table?

Thanks.

André.
 
D

Douglas J. Steele

While there is a CreateControl function that will allow you to add a text
box to a form, it's seldom a good idea to use it, as forms have a limit of
754 controls that can be added during their lifetime. You'd be far better
off to add the control to the form in advance, and simply toggle its
visibility.

If the form's unbound, the only way you can update the table is to have VBA
code that runs SQL code.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


Dear all,

How can I add via code a textbox in my form?

And the new textox is a unbound form? How can I vincule it with a
field in my table?

Thanks.

André.
 

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