Create checkboxes programatically

R

Ron Gibson

Is there a way at runtime to create a series of checkboxes based upon the
number of records in a table.

Ron
 
R

Rob Oldfield

Only by opening the form in design view, adding them, and switching back to
form view... which is messy. You're better off creating 'more than you'll
ever need' and then making them invisible according to your record count.
 
B

Bruce M. Thompson

Ron Gibson said:
Is there a way at runtime to create a series of checkboxes based upon the
number of records in a table.

Is there a reason you can't just add a "Yes/No" field to the table and display a
checkbox bound to that field in a form in "continuous" mode?
 
P

PC Datasheet

My guess as to what you want to do isn't going to work because you will be
creating unbound checkboxes that are not independent for each record. The
simple thing to do is go to your table and add a field named Selected and
make it Yes/No data type. Each record then will have a bound checkbox and
you will be able to check/uncheck each record independent of all the other
records.
 

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