I’m using Access 2003 and am a novice to Access.
I am creating a form to facilitate data entry to seven tables. The main table (A) has four sub-tables that are related to the main table by one-to-one relationships. A fifth sub-table (B) has a one-to-many relationship to Table A and serves as a bridge to another table (C) also with a one-to-many relationship to that table. So far, I have used the sub-form wizard to create the main form and four sub-forms that directly relate to Table A through the linked primary key.
The problem I am having is linking Tables A, B, & C in the same form. I have used the sub-form wizard to place a sub-form for Table C with no links to Table A. Then I nested the sub-form for Table B within that for Table C with its primary keys linked. How do I link the primary keys of the sub-sub-form to the main form (Table A to Table C)?
Thanks.
Tony
3 3186 MMcCarthy 14,534
Recognized Expert Moderator MVP
I’m using Access 2003 and am a novice to Access.
I am creating a form to facilitate data entry to seven tables. The main table (A) has four sub-tables that are related to the main table by one-to-one relationships. A fifth sub-table (B) has a one-to-many relationship to Table A and serves as a bridge to another table (C) also with a one-to-many relationship to that table. So far, I have used the sub-form wizard to create the main form and four sub-forms that directly relate to Table A through the linked primary key.
The problem I am having is linking Tables A, B, & C in the same form. I have used the sub-form wizard to place a sub-form for Table C with no links to Table A. Then I nested the sub-form for Table B within that for Table C with its primary keys linked. How do I link the primary keys of the sub-sub-form to the main form (Table A to Table C)?
Thanks.
Tony
Hi Tony
As I understand your structure. Table A is related to Table B (1 to many) and Table Bis related Table C (1 to many)
In this case ...
Form A will have a subform Form B which will itself have a subForm Form C.
For any further help I will need to know the Primary key and Foreign key in each table.
Hi, Thanks for the response. I think I am slowly figuring out that what I want Access to do is read my mind and that technology is not quite in this release. I'm not sure if Access 2007 has this capability yet, maybe the next version will.
Clarification: Table A has PK VariableA_ID, Table C has PK VariableC_ID, Table B is a bridge table for the two and has a double PK which are foreign keys VariableA_ID and VariableC_ID. With that setup, I can nest a form for data for Table C inside the form for Table A and then nest a form for Table B inside the form for Table C which links VariableC_ID to the same in the form for Table C. The VariableA_ID will have to be a pull down combo box which will allow the input person to chose which VariableA_ID to match to the VariableC_ID.
What I am actually going to do and what makes more sense for this case is to have a separete data entry form for Tables B and C and uses the pull down choice for VariableA_ID.
Thanks very much for your help. Sometimes just posing the question on the forum and waiting for a response forces a different type of thinking and reassessment.
Tony
PS Do let me know when that "new" Access version comes out!
MMcCarthy 14,534
Recognized Expert Moderator MVP
Hi Tony
Try Main Form based on Table A and subform based on -
-
SELECT TableC.VariableA_ID, TableB.*
-
FROM Table A INNER JOIN Table B
-
ON TableC.VariableB_ID=TableB.VariableB_ID
-
See if that works.
Mary
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Arnold |
last post by:
Hi there,
I have a form to organize bottles in mind, but am unsure if it will
work. Here's some background info:
Mainform = frmProduct, which contains fields for pricing, status, etc.
of complete bottles, as well as an image control for a thumbnail of a
complete product (bottle + cap).
The mainform has 2 subforms that must be visible and side-by-side:
|
by: scousineau |
last post by:
help!!
I have a form which contains 6 subforms, with check boxes which run
events that then update data on all the forms. the data is all on 1
table in a backend data base and the user works the form in the front
end.
I have compiled and compacted the front end, deleted command buttons
and cleaned up the code but the speed is almost unusable. The system
worked fine for the past year aand now just runs like a dog.
|
by: Terry |
last post by:
Hello,
I wonder if anyone can shed light on this problem for me. I have an
Access 97 front end with an SQL 2000 database. There is a Business main
form with an Owner subform and corresponding tables of the same names.
A third table BusinessRel records the BusinessID (linked to Business
table) and OwnerID (linked to Owner table).
This is what happens when the Business main form is loaded. I enter the
BusinessID and other stuff, then as...
|
by: Zlatko Matić |
last post by:
Hello.
How can I synchronize subforms content with current record in master form,
if both form and subform are based on DAO code ?
I assigned DAO recordset to forms by using QueryDef, on Load event.
Thanks...
|
by: F-13 |
last post by:
I'm working on a BOM in Access 200 from an example downloaded from from
the web. The sample database contains three tables, Assemblies (the
list of items needed to assemble any assembly), Components (the list of
items recognised by the Assemblies Table)and Output (a table used to
display the BOM from a chosen assembly).
It works fine but there are no forms. For a user to edit or create a
BOM, should there be a form for each assembly of...
| |
by: santociabattari |
last post by:
Hi Folks,
I have 3 forms I want to link, so that when I advance 1 record in one
form it will update the other two with the same record in the first
form.
I have tried using the form wizard (I am not an Access pro), but when I
add the fields of 3 tables the wizard balks. I have been told to use
the link master, but it is greyed out when I try linking.
I can use Access 2000 or 2003
|
by: danthrom |
last post by:
Hi, I have a database with four tables.
tbl_Client
client_alias (PK, text)
tbl_Matters
matterID (PK, autonumber)
matter (text)
client_alias (foreign key, tbl_Client)
|
by: rdsandy |
last post by:
Hi,
I am going to start off and apologise for the length of this post!
I have a form with 9 subforms on. Currently, each subform has its own table. Each of the tables have exactly the same field layout (ie: same fields, but slightly different names for whichever table it is). Here is an example of what I mean:
One table is called ProjectCommercial(PC), another called ProjectTechnical (PT). In these two tables (plus the other 7...
|
by: 6afraidbecause789 |
last post by:
Think school - students - discipline interventions - misbehaviors -
staff for this one....On a mainform frmStudentInterventions, I have
linked a subform (sfrmMisbehaviors) with another subform
(sfrmInterventions) with the Child and Master fields
"InterventionID." This is tested and works - as users click through
the continuous list of interventions, the continuous list of
misbehaviors changes per intervention. Now, I need to link another...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |