Checkbox for each record

  • Thread starter Thread starter justin.poole
  • Start date Start date
J

justin.poole

Hi,

I have a form + subform that allows users to add records and I would
like to have them be able to delete multiple records based on the
checkbox(es) they tick. However when one checkbox is ticked in the
subform, all the checkboxes becomes selected. This will be because that
checkbox is in fact the same checkbox (with the same name) for all
records.

What is the best way to handle this sort of situation so the user can
selected individual checkboxes?
 
You'd have to add a boolean field to the underlying table, and bind that
field to the checkbox.
 
Justin,
Add a field check field (T/F) to your subform table (ex. name [DeleteThis]). Bind the
checkbox field to that field in your subform (ControlSource = DeleteThis)
Now, each record will be able to store that DeleteThis True/False value.
Later you can run a Delete query against the subform table and delete any record whre
DeleteThis is True.
 
Thanks for your help!


Al said:
Justin,
Add a field check field (T/F) to your subform table (ex. name [DeleteThis]). Bind the
checkbox field to that field in your subform (ControlSource = DeleteThis)
Now, each record will be able to store that DeleteThis True/False value.
Later you can run a Delete query against the subform table and delete any record whre
DeleteThis is True.

--
hth
Al Campagna
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions

Hi,

I have a form + subform that allows users to add records and I would
like to have them be able to delete multiple records based on the
checkbox(es) they tick. However when one checkbox is ticked in the
subform, all the checkboxes becomes selected. This will be because that
checkbox is in fact the same checkbox (with the same name) for all
records.

What is the best way to handle this sort of situation so the user can
selected individual checkboxes?
 

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

Back
Top