Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic check boxes in form

Status
Not open for further replies.

KeyserSoze

Programmer
May 18, 2000
79
US
I'm writing an application where I will have a series of checkboxes on an Access 2000 form. I can create the checkbox objects with no problems.

My question is this: can checkbox objects be painted onto a form based on information from a table? In short: I would like to dynamically create checkbox objects based on the number of records that I have in a table. This would save me from having to create the objects in designer mode.

Is this possible?

Thanks!
 
Assuming the field bound to the checkbox is boolean.

Create a form with a datasource that includes the checkbox field. Make the form's view Continuous or Datasheet.

Now you could either use the form as-is, or you could make it a subform on another form.


 
How are ya KeyserSoze . . .

Since it appears your going to have one checkbox for each line . . . what wrong with a [blue]MultiSelect Listbox?[/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see FAQ219-2884:
 
Has anyone got an example of how to do this with checkboxes? I need to dynamically create checkboxes based on the results of a query.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top