PC Review


Reply
Thread Tools Rate Thread

Checkbox for each record

 
 
justin.poole@gmail.com
Guest
Posts: n/a
 
      30th Aug 2006
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?

 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      31st Aug 2006
You'd have to add a boolean field to the underlying table, and bind that
field to the checkbox.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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?
>



 
Reply With Quote
 
Al Campagna
Guest
Posts: n/a
 
      31st Aug 2006
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

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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?
>



 
Reply With Quote
 
justin.poole@gmail.com
Guest
Posts: n/a
 
      31st Aug 2006
Thanks for your help!


Al Campagna wrote:

> 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
>
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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?
> >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to update a certain record with a checkbox TODDAV8R Microsoft Access Forms 1 9th Aug 2007 05:13 AM
Checkbox and create new record =?Utf-8?B?R2FiYnkgR2lybA==?= Microsoft Access 4 28th Oct 2006 05:11 AM
checkbox per record in a subform =?Utf-8?B?RG93bmluZ0RldmVsb3BtZW50cw==?= Microsoft Access Forms 1 1st Dec 2005 02:12 PM
Checkbox on continuous form breaks navigation from record to record Yarik Mezheritsky via AccessMonster.com Microsoft Access Forms 0 2nd Jun 2005 06:49 AM
Checkbox per record Steve Microsoft Access Getting Started 6 5th Dec 2003 07:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:07 PM.