Subject: Adding controls to a form
Posted By: Scootterp Post Date: 4/20/2006 5:39:13 PM
I have looked on the net and in my Access books and I can't find the code to dynamically add controls, such as combo boxes, labels, etc. to a form.  I would like to have a drop down box so the user can pick a number and that many combo boxes and labels would be created.  And once that is done can the source for the combo box be then set?

Thanks,
Scott
Reply By: mmcdonal Reply Date: 4/21/2006 6:35:15 AM
That's one option. I usually just create the combo boxes and labels and make them invisible. Then on the combo box after update event, set the combo boxes visible. I think you can either set the recordsource beforehand, or on the fly, but I don't have experience with that.

Also, make sure you use whatever code you use on the combo box after update event on the form's on current event.

HTH?

mmcdonal

Go to topic 43226

Return to index page 307
Return to index page 306
Return to index page 305
Return to index page 304
Return to index page 303
Return to index page 302
Return to index page 301
Return to index page 300
Return to index page 299
Return to index page 298