Hi friends,
I have a new and extensive database to track orders for my company. The main table is called tblJobs, and I have two other main tables - tblItems and tblJobVarious - that contain info about each job - ie. manufacturer, model number, option number, etc.
The tables are related in this way:
tblItems contains a JobNumber field that is tied to tblJobs.JobID, the primary key. The relationship is descrtibed as one to many from tblJobs.JobID to tblItems.JobNumber.
tblJobVarious is related in a one to one from tblJobVariousd.JobID to tblJobs.JobID. (keep your flames to yourself - too many fields for one table)
I used these tables to build a form/subform for easy dsata viewing/entry - works fine with one exception - on occasion, the record in tblJobs will lose its associated record in tblJobVarious.
At present, out of about 108 orders, 13 now have 'orphaned' records in tblJobVarious. That is to say, I can open up the tblJobVarious and see that the data is still in the table, but it is no longer associated with the correct record in TblJobs.
So, a couple of questions for the sage wizards who lurk these forums:
Why is this happening? Is there a way I can prevent users from creating a new record in tblJobVarious while doing Data entry on the form?
How do I re-associate these orphaned records?
How do I prevent this from re-occuring?
I beleive that I have done something worng, either in my form design or in my relationships, but I don't know what.
Any help is greatly appreciated.
TIA
Regards,
Nedstar1
I have a new and extensive database to track orders for my company. The main table is called tblJobs, and I have two other main tables - tblItems and tblJobVarious - that contain info about each job - ie. manufacturer, model number, option number, etc.
The tables are related in this way:
tblItems contains a JobNumber field that is tied to tblJobs.JobID, the primary key. The relationship is descrtibed as one to many from tblJobs.JobID to tblItems.JobNumber.
tblJobVarious is related in a one to one from tblJobVariousd.JobID to tblJobs.JobID. (keep your flames to yourself - too many fields for one table)
I used these tables to build a form/subform for easy dsata viewing/entry - works fine with one exception - on occasion, the record in tblJobs will lose its associated record in tblJobVarious.
At present, out of about 108 orders, 13 now have 'orphaned' records in tblJobVarious. That is to say, I can open up the tblJobVarious and see that the data is still in the table, but it is no longer associated with the correct record in TblJobs.
So, a couple of questions for the sage wizards who lurk these forums:
Why is this happening? Is there a way I can prevent users from creating a new record in tblJobVarious while doing Data entry on the form?
How do I re-associate these orphaned records?
How do I prevent this from re-occuring?
I beleive that I have done something worng, either in my form design or in my relationships, but I don't know what.
Any help is greatly appreciated.
TIA
Regards,
Nedstar1