At the moment I am having a problem with relationships and updating tables.
The following is a production run.
Table1 -- MainFormTable1 -- Basic Table Record
Table2 ----SubFormTable2 -- Components of the Production
Table3 ----SubFormTable3 -- QC Of the Production
Table4 ----SubFormTable4 -- Customers to whom the production is sent.
The MainFormTable1 has the three subforms contained within it. I am having
trouble with the subforms updating correctly. In fact one table does not
update at all but simply keeps writing over the same record.
Tables 1, 2, & 3 relate to each other on a one to one basis. Therefore I
would presume that these would be a one to one relationship.
Table4 records the number of customers to which the production is sent and
can be more than one. Again, I presume this would be a many to one
relationship.
All of the above could be contained in one table, except for Table4, but it
would be a long-long table. It still is, using the subforms, so I am
wondering about the value of breaking it up into subforms.
I have deleted all the relationships for the moment.
Any guidance would be sincerely appreciated,
Bill. 1 2679
"Bob Quintal" <bq******@generation.net> wrote in message
news:d1******************************@news.teranew s.com... "William Bradley" <br******@magma.ca> wrote in news:XE********************@magma.ca:
Thank you Bob for your detailed response. After reading what you had offered
I saw that I had made a fundamental error in the design of the database.
Trying to be too smart ... :) Today I am going to work at getting it
straightened around.
Best wishes,
Bill. At the moment I am having a problem with relationships and updating tables.
The following is a production run.
Table1 -- MainFormTable1 -- Basic Table Record Table2 ----SubFormTable2 -- Components of the Production Table3 ----SubFormTable3 -- QC Of the Production Table4 ----SubFormTable4 -- Customers to whom the production is sent.
First thing I spot is the Table two definition -- Components. This implies a mixture or assembly of different materials/parts. You really want a one to many relation to a table that stores one component, its quantity, origin and the reference to the production order you are using it on.
example table2: Prod_Order Partno Qty_Required UM LotNo ========== ====== ============ == ===== 12345 A123 2 ea asdasdasd 12345 B127 1 oz sssssaaaa 12345 C333 .5 li 0333A1234 54321 A123 2 ea abcdefghi 54321 B127 1 oz sssssaaaa 54321 C333 .5 li 777766554 Similar comments if your Quality Control involves several inspections and tests.
example table3 Prod_Order Step Stepdesc Operator DateDone ========== ==== ============ ======= ======== 12345 1 Mix It1 & 2 007 12/00/03 12345 2 Add It 3 007 12/00/03 12345 3 Inspect qc3 13/01/03 54321 1 Mix It1 & 2 54321 2 Add It 3 54321 3 Inspect The system where I work uses such a structure plus a set of master tables that contain the predetermined portions of the production order.
When we create a New Order, we copy the list of materials to table two, and the production order. The Production expediter then enters the relevant lot traceability number for each part used.
Once the kit is ready, Table3 gets populated from the master operations list for the applicable end item. Operators and inspectors sign off and enter results.
When the kit is finished, Sales add customer records as the goods are sold.
Each stage uses a separate form, because there's no need to view all the data at once. Each of the forms is written as a form- subform, with the table1 in the form part and the relevant table in the subform.
Since the subforms hold the repeating data in separate rows instead of separate fields on thje same row, design time is improved, readability is improved, and real estate is minimized.
The MainFormTable1 has the three subforms contained within it. I am having trouble with the subforms updating correctly. In fact one table does not update at all but simply keeps writing over the same record.
Tables 1, 2, & 3 relate to each other on a one to one basis. Therefore I would presume that these would be a one to one relationship.
See my comments on tables 2 and 3. Table4 records the number of customers to which the production is sent and can be more than one. Again, I presume this would be a many to one relationship.
All of the above could be contained in one table, except for Table4, but it would be a long-long table. It still is, using the subforms, so I am wondering about the value of breaking it up into subforms.
I have deleted all the relationships for the moment.
Any guidance would be sincerely appreciated,
Bill.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Sabine Oebbecke |
last post by:
Hi Experts!
I have several forms and reports where controls get their values with
'Forms!MainForm!Control' or 'Forms!MainForm!Subform!Control' resp
'Forms!MainForm!Subform.Form!Control' which...
|
by: Ellen Manning |
last post by:
Using A2K. I've got a mainform with a subform (subfrm1). There's a
subform within that subform (subfrm2).
When an amount is entered on the mainform, I want that amount to
appear on subfrm1 and...
|
by: Dalan |
last post by:
I'm sure there is a workaround for this, but haven't found it yet. I
have a mainform with two subforms and after one or both of the
subforms are updated, then clicking the Refresh button on the...
|
by: Bob |
last post by:
Hi Everybody
I have a form called frmListBox that is connected to a table tblListBox.
This is opened from a form called "frmInvoiceOrder" which has a subform called "zfrmInvoiceOrder"
and...
|
by: P Mitchell |
last post by:
Hello
I would like someone to be able to help with the updating of data in a
lookup list in a subform. In short, is their a VB instruction that is the
equivalent of performing the action of...
|
by: Robert Jacobs |
last post by:
Please advise...
I currently have a Mainform (Customers) and a Subform (Service
Requests) with a one to many relationship (one customer, many service
requests) with a CustomerID that is unique...
|
by: FNA access |
last post by:
I have a mainform that has a subform in the detail section and a subform in the footer section.(Both subforms are in datasheet view) When I click the navigation button to create a new record on the...
|
by: NerdyGirL |
last post by:
Hello,
I've read thru numerous post/archives trying to decipher the cause of my problem to no avail. I'm just basically trying to conduct a search by using a form in order to locate data that may...
|
by: jinalpatel |
last post by:
I have a mainform which contains "Holder Information (name,address,dob etc)
and within this mainform a subform called "LicenseInformation" (licensetype,purchasedate,amount etc)
When user search...
|
by: JHite |
last post by:
I’m using Access 2003 on Windows XP.
I have a Mainform (Staff Entry) which displays an unbound combo box named ChooseStaff. The Row Source for this combo box is a SELECT of the UserIDs and Staffer...
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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...
|
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,...
|
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: 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...
| |