Alex.Wood101
New member
- Local time
- Yesterday, 20:30
- Joined
- May 27, 2016
- Messages
- 2
Hey guys, I'm doing a college assessment right now and I'm having a few problems inputting data for a foreign key.
So, I'm basically making a database for hardware problems. One of the tables is called Hardware Problems Log. In this table an employee at this company would be able to write a report stating problems with a hardware at a certain time and place.
Each Employee has a ID in another table called Employee, the ID is an Auto Number. I've made a column in the Hardware Problems log called Employee ID (it's the Number data type), I've put the both of them in a one-to-many relationship.
Anyway here's the problem: Whenever I try to input a Employee ID, that is from the Employee table, into the Hardware problems log I get an error message, that says: "You cannot add or change a record because a related record is required in Table 'Employee Details'.
I understand that, but I do have a record in the other table. I'm really confused by this. Any help would be greatly appreciated. Thank you!
So, I'm basically making a database for hardware problems. One of the tables is called Hardware Problems Log. In this table an employee at this company would be able to write a report stating problems with a hardware at a certain time and place.
Each Employee has a ID in another table called Employee, the ID is an Auto Number. I've made a column in the Hardware Problems log called Employee ID (it's the Number data type), I've put the both of them in a one-to-many relationship.
Anyway here's the problem: Whenever I try to input a Employee ID, that is from the Employee table, into the Hardware problems log I get an error message, that says: "You cannot add or change a record because a related record is required in Table 'Employee Details'.
I understand that, but I do have a record in the other table. I'm really confused by this. Any help would be greatly appreciated. Thank you!