Hello again,
I have a problem with one-to-one relationships (with tables :p). I have seperated a large table into four smaller tables - EmployeeDetails , MRSADetails, DiseaseHistory and NeedleStick. I have made sure all of the tables contain the same number as a primary key in an 'id' column. I have made one-to-one relationships with referential integrity, cascade delete and cascade update enabled.
I have made a form with the record source set to EmployeeDetails and have included subforms for the other three. The forms are linked correctly and using the navigation buttons down the bottom i have ensured they are all displaying relevant details. The problem comes when i wish to enter a new employee (using the arrow with the * navigation button at the bottom). I immediately get an error message saying "index or primary key cannot have a null value".
Any help would be appreciated as always!
I have a problem with one-to-one relationships (with tables :p). I have seperated a large table into four smaller tables - EmployeeDetails , MRSADetails, DiseaseHistory and NeedleStick. I have made sure all of the tables contain the same number as a primary key in an 'id' column. I have made one-to-one relationships with referential integrity, cascade delete and cascade update enabled.
I have made a form with the record source set to EmployeeDetails and have included subforms for the other three. The forms are linked correctly and using the navigation buttons down the bottom i have ensured they are all displaying relevant details. The problem comes when i wish to enter a new employee (using the arrow with the * navigation button at the bottom). I immediately get an error message saying "index or primary key cannot have a null value".
Any help would be appreciated as always!
Comment