473,396 Members | 1,599 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,396 software developers and data experts.

Subfoirm of Checkboxes

gj
I have always wondered how to do the following using standard forms
without VBA:

Staff
[T_ID]
[T_NAME]

Staff Group Memberships
[TG_ID]
[GROUP_ID]

Groups
[GROUP_ID]
[GROUP_NAME]
Say Groups has 15 entries how is it possible to create a subform for
STAFF GROUP MEMBERSHIPS on a STAFF form where all 15 available groups
are listed and the user just needs to click in a box. The subform would
need to show existing memberships where entered.

My need for this is to make it easier for users to enter data. It is far
simpler to click in 5 of the 15 available check boxes in a list than to
select 5 times from a combo box on individual records.

Additionally, in this example the GROUPS could change at any time with
new records being added so maually adding check boxes to a form is out.

Once I work this out the same method will be used multiple times
throghout a number of applications.
GJ
Nov 13 '05 #1
2 1211
gj
Sorry for the munted subject line. Clicked the wrong button
Nov 13 '05 #2
The usual way to interface this is a subform bound to Staff Group
Memberships, with a combo box sourcing records from Groups.

If you want, you can interface it with a pair of list boxes (one showing the
memberships the person does have and the other what they don't have), and 2
command buttons (for Add and Remove). List boxes don't have a
LinkMasterFields/LinkChildFields, so you have to use the Current event of
the form to set their RowSource. The "has" row source is easy. The "has not"
is a frustrated outer join: use the Unmatched Query Wizard to create an
example if you don't know what that is.

The command buttons execute action query statements to Append or Delete the
appropriate record in the junction table. Then Requery both list boxes to
display the change.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"gj" <go****@google.google> wrote in message
news:Cw*******************@news02.tsnz.net...
I have always wondered how to do the following using standard forms without
VBA:

Staff
[T_ID]
[T_NAME]

Staff Group Memberships
[TG_ID]
[GROUP_ID]

Groups
[GROUP_ID]
[GROUP_NAME]
Say Groups has 15 entries how is it possible to create a subform for STAFF
GROUP MEMBERSHIPS on a STAFF form where all 15 available groups are listed
and the user just needs to click in a box. The subform would need to show
existing memberships where entered.

My need for this is to make it easier for users to enter data. It is far
simpler to click in 5 of the 15 available check boxes in a list than to
select 5 times from a combo box on individual records.

Additionally, in this example the GROUPS could change at any time with new
records being added so maually adding check boxes to a form is out.

Once I work this out the same method will be used multiple times throghout
a number of applications.
GJ

Nov 13 '05 #3

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

Similar topics

2
by: Pete | last post by:
There is a Summary/Example further down... On page one of my site I have a form with some checkboxes and detailed descriptions. When the form is submitted (to page two), the values of the...
6
by: terence.parker | last post by:
I currently have the following JS in my header: function checkall(thestate) { var checkboxes=eval("document.forms.EssayList.file_id") for (i=0;i<checkboxes.length;i++)...
10
by: rn5a | last post by:
All the rows in a DataGrid, including the Header, are accompanied with a CheckBox. I want that when the CheckBox in the Header is checked, then all the CheckBoxes should automatically get checked....
5
by: masterej | last post by:
Developers, Is there any way to disable all checkboxes on a form? I have a form with 160 checkboxes and I want to be able to disable all of them. Is there a way I can do something like this: ...
8
by: PeteOlcott | last post by:
http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/grid/tests/test_change_structure.html I would like to completely understand how GUI controls such as this one are constructed. In the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.