I have an Access database based on linked tables from SQL Server (ODBC). The main form is based on a SQL Server Table with a primary key field called PRJ_ID. Every record has an integer field called MASTER_PRJ_REF which can contain the PRJ_ID of the same record or another record of the same table.
Basically, i can have a "master" record and several "slave" records within the same table. I also specify that in SQL Server i created a one-to-many relationship between the two fields.
I want to use a subform to display and eventually modify some fields of the "master" record, but with the parent form displaying the "slave" record. What i did is creating the subform with this relation:
Parent form: PRJ_ID
Sub form: MASTER_PRJ_REF
Problem is, the subform displays the same record of the parent form, not the referenced one. So, it seems that it is not following my relationship, but is following the PRJ_ID to PRJ_ID relationship.
Why is the relationship not working?
Is it correct to make a relationship between two fields of the same table?