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

Multiple Check Boxes

I have a database in Access 2000 that I need some help on.

I have three tables: PROJECTS, SYSTEMS, & SYSTEMSREF.

They possess the following fields:

-----------------------------------
PROJECTS
project_pk (autonumber)
project_name
project_descr
project_date
etc
-----------------------------------
SYSTEMS
systems_pk (autonumber)
project_fk
systemsref_fk
-----------------------------------
SYSTEMSREF
systemsref_pk (autonumber)
systemsref_desc
-----------------------------------

The tables are related as follows:

project_pk ------project_fk
systemsref_fk ------systemsref_pk

I have created a form that allows me to input new projects in the
project table. I have a subreport (in datasheet view) to select all
the systems a project may impact. This is working okay for now, but I
need to change the design of the subreport to list each option as a
checkbox. However, I need to be able to select multiple options.
Furthermore, if an option is checked, it needs to create a new record
within the SYSTEMS table. If I uncheck an option, it needs to delete
the record.

I am comfortable coding in VBA if this is required.

Sep 5 '07 #1
3 4689
Search & You Will Find wrote:
I have a database in Access 2000 that I need some help on.

I have three tables: PROJECTS, SYSTEMS, & SYSTEMSREF.

They possess the following fields:

-----------------------------------
PROJECTS
project_pk (autonumber)
project_name
project_descr
project_date
etc
-----------------------------------
SYSTEMS
systems_pk (autonumber)
project_fk
systemsref_fk
-----------------------------------
SYSTEMSREF
systemsref_pk (autonumber)
systemsref_desc
-----------------------------------

The tables are related as follows:

project_pk ------project_fk
systemsref_fk ------systemsref_pk

I have created a form that allows me to input new projects in the
project table. I have a subreport (in datasheet view) to select all
the systems a project may impact. This is working okay for now, but I
need to change the design of the subreport to list each option as a
checkbox. However, I need to be able to select multiple options.
Furthermore, if an option is checked, it needs to create a new record
within the SYSTEMS table. If I uncheck an option, it needs to delete
the record.

I am comfortable coding in VBA if this is required.
What makes something true and something false? IOW, what is the initial
value of the checkbox? Maybe your subform could be a listbox...set up
to display all systems. Make it Multiselect; simple or extended. In
the OnOpen event select set the selected to True for those that exist.
Maybe set a Command button to add/remove those that were
clicked/selected/deselected.
Sep 5 '07 #2
Assuming, that the options will change from time to time, what you will do
if you represent them with Checkboxes is embed data in the structure of your
UI and you will have to change the Form whenever an option changes, is
added, or is deleted. If you explain that to whoever told you that you
"need to" make the change, perhaps they will allow you to use Salad's good
suggestion.

However, if they have the say in the matter, and won't relent, then you may
have to bite the bullet, add the checkboxes, and add code to perform the
actions you describe.

Larry Linson
Microsoft Access MVP

"Search & You Will Find" <jo**********@gmail.comwrote in message
news:11**********************@r34g2000hsd.googlegr oups.com...
>I have a database in Access 2000 that I need some help on.

I have three tables: PROJECTS, SYSTEMS, & SYSTEMSREF.

They possess the following fields:

-----------------------------------
PROJECTS
project_pk (autonumber)
project_name
project_descr
project_date
etc
-----------------------------------
SYSTEMS
systems_pk (autonumber)
project_fk
systemsref_fk
-----------------------------------
SYSTEMSREF
systemsref_pk (autonumber)
systemsref_desc
-----------------------------------

The tables are related as follows:

project_pk ------project_fk
systemsref_fk ------systemsref_pk

I have created a form that allows me to input new projects in the
project table. I have a subreport (in datasheet view) to select all
the systems a project may impact. This is working okay for now, but I
need to change the design of the subreport to list each option as a
checkbox. However, I need to be able to select multiple options.
Furthermore, if an option is checked, it needs to create a new record
within the SYSTEMS table. If I uncheck an option, it needs to delete
the record.

I am comfortable coding in VBA if this is required.

Sep 5 '07 #3
On Sep 5, 7:48 pm, "Larry Linson" <boun...@localhost.notwrote:
Assuming, that the options will change from time to time, what you will do
if you represent them with Checkboxes is embed data in the structure of your
UI and you will have to change the Form whenever an option changes, is
added, or is deleted. If you explain that to whoever told you that you
"need to" make the change, perhaps they will allow you to use Salad's good
suggestion.

However, if they have the say in the matter, and won't relent, then you may
have to bite the bullet, add the checkboxes, and add code to perform the
actions you describe.

Larry Linson
Microsoft Access MVP

"Search & You Will Find" <jones.joh...@gmail.comwrote in messagenews:11**********************@r34g2000hsd.g ooglegroups.com...
I have a database in Access 2000 that I need some help on.
I have three tables: PROJECTS, SYSTEMS, & SYSTEMSREF.
They possess the following fields:
-----------------------------------
PROJECTS
project_pk (autonumber)
project_name
project_descr
project_date
etc
-----------------------------------
SYSTEMS
systems_pk (autonumber)
project_fk
systemsref_fk
-----------------------------------
SYSTEMSREF
systemsref_pk (autonumber)
systemsref_desc
-----------------------------------
The tables are related as follows:
project_pk ------project_fk
systemsref_fk ------systemsref_pk
I have created a form that allows me to input new projects in the
project table. I have a subreport (in datasheet view) to select all
the systems a project may impact. This is working okay for now, but I
need to change the design of the subreport to list each option as a
checkbox. However, I need to be able to select multiple options.
Furthermore, if an option is checked, it needs to create a new record
within the SYSTEMS table. If I uncheck an option, it needs to delete
the record.
I am comfortable coding in VBA if this is required.- Hide quoted text -

- Show quoted text -
I tried to get around the check boxes, but since my boss has the final
say and her final say is check boxes, I have to go along. I would like
to have the form present the check boxes similarly to how Access
presents Switchboard items. So if new items are added, they
automatically appear.

My main issue is deleting the record that is associated with project
when the items is unchecked.

Sep 6 '07 #4

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

Similar topics

1
by: Pax S | last post by:
I need a button that will check (make true) two check boxes (fields) For the record that has the focus (the record on the form that I am presently looking at). The two check boxes would be like a...
1
by: Jim in Arizona | last post by:
I'm having dificulty figuring out how to process multiple check boxes on a web form. Let's say I have three check boxes: cbox1 cbox2 cbox3 The only way I can think of to code the...
7
by: Siv | last post by:
Hi, I have an MDI application that uses a generic "ShowPage" routine in a module that is called when I want to display a child form. The basic idea is that in the module I have declared each form...
10
by: Jim in Arizona | last post by:
I'm having dificulty figuring out how to process multiple check boxes on a web form. Let's say I have three check boxes: cbox1 cbox2 cbox3 The only way I can think of to code the...
6
by: Harshpandya | last post by:
Hi all, I am working on the form in which you fill out the whole PHP form and e mail that details to someone. It is working fine. But now i want to send the same form to be sent to different...
25
by: bonneylake | last post by:
Hey Everyone, Well i am not sure if my question needs to be here or in coldfusion. If i have my question is in the wrong section i am sorry in advance an will move it to the correct section. ...
6
by: woodey2002 | last post by:
Hi Everyone. Thanks for your time. I am trying to create a search form that will allow users to select criteria from multiple multi select boxes. So far i have managed to achieve a search option...
1
by: woodey2002 | last post by:
Hi Everyone and many thanks for your time.. I am trying to begin access and a bit of VBA i am enjoying it but I have a annoying problem I just can’t get any where on. My databse mostly includes...
7
by: Humakt | last post by:
This is 2D game where there are breakable boxes in the middle two bats on both sides and one or more balls breaking the boxes. Kind of like a mixup of pong and breakout. Collision detection...
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?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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
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...

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.