• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 215
  • Last Modified:

MS Access: Table relations via Forms

My table relationships are now correct. I saw the video on how to do this and I matched the connections to my tables.

However when I attempt to add a record via the form “frmInspectionsDimension” I get this error:

“You cannot add or change a record because a related record is required in table tblTools.”

In this form you are supposed to select the Tool ID which in this form only sees dimensional tools and then you enter in the Date Checked, Checked By, General Condition and Comments. You also enter any measurement checks that you might make.

If the table relationships are correct why doesn’t the form work??



Measuring-Instruments-5-03-11Rev.mdb
0
James Coats
Asked:
James Coats
2 Solutions
 
danishaniCommented:
Well the error is caused, while you need to create a ToolID in your tblInspections first.

So from there you can pull up the information from tblTools.

HTH,
Daniel
0
 
als315Commented:
And you also should add InspectionPK from tblDimensionVerification to InspectionPK in tblInspections.
0
 
James CoatsComputer Info. Sys. StudentAuthor Commented:
Thanks guys this worked
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now