Subject: Child Link Field Won’t Update
I am a novice programmer working on a project for my repair shop. I am developing a program to track repairs at an electronics repair shop. So Far I have my tables set up and seem to be normalized correctly.
At the "table level" all is well. I Have 4 tables, tblCustomerData,tblServiceUnit,tblJobStatus,tblJobEstimate.
At the "table level" I can enter a new customer, enter new service Items to be repaired, add a current Job Status for each individual repair, and I can enter an estimate for each repair. At the table level the Foreign Key in each "many side" table gets automatically filled in with the Primary Key from the one side table. All data entered in the tables remains intact as expected.
The problem I am having is at the form level. I have a main form for gathering Customer Data. This Form has a SubForm(Datasheet) to enter new service units to customer record. Each service unit record in this datasheet will expand and present a small "form view" form to enter or view the current job status of the selected job. Up to this Point all works great. Here is the problem; this Form View form has a button created courtesy of the Control Wizard that opens another "Form View" form for entering repair estimate data. This form has been linked to the parent form through a text box field called "JobStatusID". The Value in the parent form link field will not cascade up-date the child forms "JobStatusID" text box field. If I manually enter the value, all is well. If I don't manually up-date the text box with the keyboard, the Child form link field "JobStatusID" displays a zero, and if I enter data I create an orphan record. The forms data source is based on a query that seems to work ok, I can manually enter the "JobStatusID" from the the parent form into the child form "JobStatusID" and all data is stored and retrieved correctly.
I have spent many days trying to solve this on my own, but I just don't understand why it works at the table level but not at the form level. Any suggestions would be greatly appreciated.
I am a novice programmer working on a project for my repair shop. I am developing a program to track repairs at an electronics repair shop. So Far I have my tables set up and seem to be normalized correctly.
At the "table level" all is well. I Have 4 tables, tblCustomerData,tblServiceUnit,tblJobStatus,tblJobEstimate.
At the "table level" I can enter a new customer, enter new service Items to be repaired, add a current Job Status for each individual repair, and I can enter an estimate for each repair. At the table level the Foreign Key in each "many side" table gets automatically filled in with the Primary Key from the one side table. All data entered in the tables remains intact as expected.
The problem I am having is at the form level. I have a main form for gathering Customer Data. This Form has a SubForm(Datasheet) to enter new service units to customer record. Each service unit record in this datasheet will expand and present a small "form view" form to enter or view the current job status of the selected job. Up to this Point all works great. Here is the problem; this Form View form has a button created courtesy of the Control Wizard that opens another "Form View" form for entering repair estimate data. This form has been linked to the parent form through a text box field called "JobStatusID". The Value in the parent form link field will not cascade up-date the child forms "JobStatusID" text box field. If I manually enter the value, all is well. If I don't manually up-date the text box with the keyboard, the Child form link field "JobStatusID" displays a zero, and if I enter data I create an orphan record. The forms data source is based on a query that seems to work ok, I can manually enter the "JobStatusID" from the the parent form into the child form "JobStatusID" and all data is stored and retrieved correctly.
I have spent many days trying to solve this on my own, but I just don't understand why it works at the table level but not at the form level. Any suggestions would be greatly appreciated.