473,395 Members | 2,192 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,395 software developers and data experts.

Multiple check boxes to create new records in Associative Table

Hi,

I am working on a ms access database and I am having trouble using a
form to create new records in an associative table.

Here is the breakdown of my database:

Main Table - Computer
Primary Key - ComputerID (AutoNumber)
ComputerName
etc.

Associative (relational Table) - Computer_Application
Primary Key - ComputerID
Primary Key - ApplicationID

3rd Table - Application
Primary Key - ApplicationID
ApplicationName
etc.

Each computer can have many different applications on it and each
application can be on many computers. I am trying to create a form with
multiple checkboxes to select multiple applications and record each
application in the Associative table - Computer_Application.

This form is a subform of a Computer form, where Computer_ID is carried
through using open_args.

What I need help doing is when I check a box on the form, there is a
new record created in the Computer_Application table with the
ComputerID and ApplicationID. This will also allow for multiple
checkboxes to be checked and multiple records being created at the same
time when a save button is clicked.

If you need more information please let me know. Any help would be
great. I have been trying to research this a little bit and have been
coming up a little short each time. I keep getting stuck at the coding
aspect (looping through checkboxes).

Please let me know if you can help.

Thanks a lot.

Jake Lonc

Aug 14 '06 #1
1 2908
Why not create a combobox in your subform (based on
Computer_Application), and then just make the rowsource of the Combobox

SELECT ApplicationID, ApplicationName
FROM Application
ORDER BY ApplicationName;

Then set the LimitToList property to True.

I would recommend doing it this way for the following reasons:
1. it's bad UI design to have to change the UI constantly (if you add
new software to your table, which happens all the time).
2. it's MUCH easier to change data in your underlying tables, and can
change it without touching your UI.

Draw an analogy between your app and Northwind.

Application ~ Product
Computer_Application ~ Invoice Line Items
Computer ~ Invoice

I just think comboboxes are much easier to work with in this case. I
only use checkboxes for real Yes/No fields.

Aug 14 '06 #2

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

Similar topics

2
by: MRG | last post by:
I have a geographic points table containing point records with latitude and longitude points. I also have several other tables containing entities that will relate to points in the points table,...
7
by: Drew | last post by:
I have a db table like the following, UID, int auto-increment RegNo Person Relation YearsKnown Now here is some sample data from this table,
2
by: Craig M | last post by:
Hi, I have a form, frmInvoices and a subform, frmInvoicesSub. On the parent form, i have a "print report" button, that prints a report depending on an ID on the parent form. Each record in...
11
by: dskillingstad | last post by:
I've been struggling with this problem for some time and have tried multiple solutions with no luck. Let me start with, I'm a novice at Access and I'm not looking for someones help to design my...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
13
by: ricky.agrawal | last post by:
I'm really not sure how to go about this in Access. What I've created is a table for each location. Those tables are identical in format but different in information. The tables are named after...
8
by: fonzie | last post by:
Is it possible to have a data entry form where the information is stored in several different tables (5 or 6)? I have an inventory database where Table1 stores all of the data common to all...
6
by: Dave | last post by:
On my form I have combo boxes. These combo boxes, after updating them, populate respective listboxes that are located below the combo boxes on the same form. I am trying to use a "generate...
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...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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
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...

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.