PC Review


Reply
Thread Tools Rate Thread

Count ticked check boxes on form

 
 
=?Utf-8?B?QmFycnk=?=
Guest
Posts: n/a
 
      29th Jun 2006
I have a form which makes check boxes visible depending on a value selected
by the user as a start and finish value. the check boxes are split into
colums from A-C and in rows from 0-30. This works fine but what i now need to
do is count all the check boxes ticked in column A and a count of all the
check boxes ticked in column B etc..

can anyone please help me with this??

Here is the code i have used to make the check boxes visible

Dim a As Integer
Dim b As Integer
Dim c As Integer
Dim CheckA As String
Dim CheckB As String
Dim CheckC As String

StartLevel = Me.txtStartLevel.Value
FinishLevel = StartLevel + Me.txtNoOfLevels.Value - 1

For a = StartLevel To FinishLevel
CheckA = "chkLevela" & Format$(a)
Me(CheckA).Enabled = False
Me(CheckA).Visible = False
Next a

For b = StartLevel To FinishLevel
CheckB = "chkLevelb" & Format$(b)
Me(CheckB).Enabled = False
Me(CheckB).Visible = False
Next b

For c = StartLevel To FinishLevel
CheckC = "chkLevelc" & Format$(c)
Me(CheckC).Enabled = False
Me(CheckC).Visible = False
Next c
 
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
counting ticked check boxes scottie Microsoft Access 1 1st Jul 2009 06:29 AM
Getting a Check Box ticked on form load? Chrisso Microsoft Access Form Coding 2 11th Aug 2008 07:40 PM
How do I count check boxes? =?Utf-8?B?c3ByaW5nc2NoaWNr?= Microsoft Access Reports 2 24th Oct 2007 02:18 AM
Count ticked check box Bob V Microsoft Access 2 9th Jun 2007 12:38 AM
Count "selected" check boxes on continuous form. =?Utf-8?B?VGhlIEdyYXBlIEh1bnRlcg==?= Microsoft Access Form Coding 6 5th Jan 2005 05:47 PM


Features
 

Advertising
 

Newsgroups
 


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