PC Review


Reply
Thread Tools Rate Thread

how do i make a check box control other check boxes?

 
 
=?Utf-8?B?TGVzbGV5?=
Guest
Posts: n/a
 
      27th Oct 2007
I have a form that has 5 check boxes. I'd like to have an additional check
box that would check all of the other check boxes.

Suggestions? Thanks
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      27th Oct 2007
In the AfterUpdate event of the 6th check box, put code:

Private Sub Checkbox6_AfterUpdate

Me.Checkbox1 = True
Me.Checkbox2 = True
Me.Checkbox3 = True
Me.Checkbox4 = True
Me.Checkbox5 = True

End Sub

Or, if you want all 5 unchecked when checkbox 6 is unchecked,

Private Sub Checkbox6_AfterUpdate

Me.Checkbox1 = Me.Checkbox6
Me.Checkbox2 = Me.Checkbox6
Me.Checkbox3 = Me.Checkbox6
Me.Checkbox4 = Me.Checkbox6
Me.Checkbox5 = Me.Checkbox6

End Sub

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


"Lesley" <(E-Mail Removed)> wrote in message
news:61F73653-7358-4036-AABD-(E-Mail Removed)...
>I have a form that has 5 check boxes. I'd like to have an additional check
> box that would check all of the other check boxes.
>
> Suggestions? Thanks



 
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
Show check boxes which arn't blank, hide check boxes which are bla Accessorise Microsoft Access Forms 1 12th Jun 2008 08:29 AM
Make check boxes look like radio check boxes? AAaron123 Microsoft VB .NET 2 24th Apr 2008 02:24 AM
how to check all check boxes in repeater control kris Microsoft ASP .NET 1 22nd Sep 2005 08:16 PM
how to check all check boxes in repeater control kris Microsoft ASP .NET 0 22nd Sep 2005 07:29 PM
how to check all check boxes in repeater control kris Microsoft ASP .NET 0 22nd Sep 2005 07:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:43 AM.