473,414 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Continuous Forms Tally on Checkboxes

I am looking for the best way to accomplish the following continuous
forms concept.

There are Five Groups: A, B, C, D, E
Each group has eight Members: a, b, c, d, e, f, g, h
Each Member is seen as a row in a continuous form like:

A a
A b
A c
..
..
..
A h
B a
B b
..
..
..
Each row (member) has a bound checkbox and a lable: lblCounter

The behavior that I am looking for is -- when you click the checkbox
for any group, the count for that group is reflected in lblCounter.

Using Group A as an example, if you check member A b (and it is the
only member of that group selected) then A b's lable shows "1" -- if
you then select member A g the label updates to "2" and so on until
your reach "4". If you de-select a member, it's label value
for that group reduces by 1.

If you exceed "4" checks for a group the number should briefly turns
into a message like "All
4 Selected" and then undo the check.

I have a feeling that as simple as this sounds this is difficult task
with continuous forms.

Thanks for any suggestions,
RBolling

Jul 13 '07 #1
1 3207
On Fri, 13 Jul 2007 08:17:46 -0700, rpboll <RP****@gmail.comwrote:
>I am looking for the best way to accomplish the following continuous
forms concept.

There are Five Groups: A, B, C, D, E
Each group has eight Members: a, b, c, d, e, f, g, h
Each Member is seen as a row in a continuous form like:

A a
A b
A c
.
.
.
A h
B a
B b
.
.
.
Each row (member) has a bound checkbox and a lable: lblCounter

The behavior that I am looking for is -- when you click the checkbox
for any group, the count for that group is reflected in lblCounter.

Using Group A as an example, if you check member A b (and it is the
only member of that group selected) then A b's lable shows "1" -- if
you then select member A g the label updates to "2" and so on until
your reach "4". If you de-select a member, it's label value
for that group reduces by 1.

If you exceed "4" checks for a group the number should briefly turns
into a message like "All
4 Selected" and then undo the check.

I have a feeling that as simple as this sounds this is difficult task
with continuous forms.

Thanks for any suggestions,
RBolling
Get the count from the underlying table rather than from the continuous form's
recordsetclone. Something like -

Sub CheckBoxControl_AfterUpdate()
Dim intChecked As Integer
Dim strGroup As String

Me.Dirty = False
strGroup = Me.Group
intChecked = Abs(DSum("CheckBoxField","tblMyTable","[Group]=" & Chr(34) &
strGroup & Chr(34)))

If intChecked >4 Then
Beep
MsgBox "All 4 Selected", vbInformation + vbOkOnly
Me.CheckBox = False
Me.Dirty = False
intChecked = intChecked - 1
End If

Me.lblCounter.Caption = intChecked

End Sub

Wayne Gillespie
Gosford NSW Australia
Jul 13 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mark Hannon | last post by:
I am designing a PayPal shopping cart/store for a client and have placed several of PayPal's shopping cart forms on the page to correspond with different products. Each form has a unique name...
0
by: Karl Roes | last post by:
I'm still having trouble posting follow-ups. :-( "Unable to retrieve message 7cc66112.0501041919.3a6628b4@posting.google.com" Now Turtle wrote "You'll need an extra field in the table...
3
by: Richard Hollenbeck | last post by:
I have the following query in my form's code: Private Function Get_Data(fieldNum As Integer) Dim strSQL As String Dim db As DAO.Database Dim rs As DAO.Recordset strSQL = "SELECT & "", "" & ...
20
by: Robert | last post by:
Need some help to stop me going around in circles on this one.... Have a nested subform (subform2) which simulates a continuous form for the record on the parent subform. Subform2 has rows of...
2
by: panwala_bhavesh | last post by:
Thanks in advance... I have a form displaying the results of a query in a continuous form style. I want to be able to double-click on the key field of the form (a textbox, in this case a AssetID)...
5
by: Michael R | last post by:
Searching the net I've found a simple technique to add row numbers and alternate colors (for the even and the uneven row) to a continuous form. 1st step: Create a textbox, send it to background...
3
by: trgpham | last post by:
Hi all, I have a question and really hoping you guys can help or point me to the right direction. MY SCENARIO: I need to design a screen which show up all the questionnaires and the users can...
1
by: blueheelers | last post by:
I have been researching for several hours on the best way to display images in continous forms in Access 2003. For example, I want to display employee name, email, phone, and picture for each...
1
by: Hypnotik | last post by:
Well on to my next program. The program tally's votes on 3 issues. I have a class for the interface (asks questions) and a class for adding the tallies. In main there is a counter of Tally data...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.