Hello,
Your problem is with keys. Each table must have a unique key to identify records. In Student Records
table it is the Student ID
field. However in your degrees tables you never specify a unique key - just Student ID
.
Each of the degrees tables should start with an auto-increment integer field for the key. The Student ID
field in each is used as a link back to the Student Records
table thus creating a one-to-many relation for Student Records
table to each degrees table. The name of the student in the degrees tables is a duplication of what is already in the Students Records
table and totally unnecessary.
You many want to review Chapter 3 - Tables - Relationships between tables for more information (docs located here).
Edit:
Here is a quick sample based on answer & comments. This is only one solution. Depending on needs, there are a vast amount of ways to link data and tables. For the most part macros are not needed. What is truly helpful is knowledge of SQL. This is typically a major tool in using DB’s as it can do many things you think macros would be needed for.
The sample is simple. Three tables. Student Master, Degrees & Degrees Applied.
Student Master contains the all of the students specifics & uses the unique ID. The Degrees table is just a list of available degrees. The name itself is the key since it is unique. The Degrees Applied table ties the other two tables together and allows its own specific information as necessary.
The Degrees Applied table is tied back to the Master via the student ID number and the degree field is a listbox choice of all items in the Degrees table.
Now if you ever want a list of who is majoring in English, this is where SQL is handy. Create a query with all the info wanted and, if desired, display it in a form. Lots of different variations I can think of such having a form with a list box, select the major wanted, press a button and those students with that major appear in a table control.
All these different methods are discussed in the documentation I pointed you to.
Sample: Students.odb
If this answers your question please click on the (upper left area of answer).