Child and Master links

harrop11

Registered User.
Local time
Yesterday, 16:39
Joined
Jun 5, 2009
Messages
11
Hello,
To say the least i am very much a beginner to access and while creating a database for a college assignment i've come accross a small problem which i cannot for the life of me find a solution.

Here it goes:
the database consists of 3 tables which are joined by the central table which has foreign keys for both of the other tables. I have created a form which consists of all data.
When i try to input a new record via a foreign key i'm told that the record does not exist although the form works fine if the record does exist in the mater side. Is there any way to allow this and yes, enforce referential integrity is unchecked.

If there is not such a simple answer to this i've thought there may be ways around this like an event on update of the foreign key to create a new record containing the data in that field.

I would very much appreciate any help anyone may be able to offer.

Thanks
 
Here you go.

While your in there i need some way of a query diplaying if the registration has been logged under an incident in the past 24 hours but thats just for browny points.

Thanks
 

Attachments

I'll have to look when I get home. I don't have 2007 here.
 
Hi,
I'm guessing this one isn't as easy as i thought (hoping) it might be. Well thanks anyway, i'm guessing i'll have to take a different approach.
 
As I don't have A2007 here I am not exactly sure what you have but in principal the The child records should have the PK of the parent record stored as a FK.

You should be able to add new records to the child record by using a Form/Subform setup based on a query linking the two tables. By selecting/creating the correct Parent record before you add the Child record you should avoid any problems
 

Users who are viewing this thread

Back
Top Bottom