To begin with there are three tables here...
Person
personID - PK
...
Subject
subjectID - PK
personID - FK
...
Contact
subjectID - FK
...
I have a form which points to the Person table. I am attempting to create an action button which opens the contacts for each person record. The problem is the middle subject table. I am wondering if there was a way to retrieve the subjectID using VB so I can pass that value into the open form command.
When they click the button all I have is the personID of the record they selected. I need to retrieve the subjectID value somehow from this personID value. I was thinking of using a sql query but from my research I wasn't able to find one that supports a select statement.
Any help is greatly appreciated.
Thanks!
Person
personID - PK
...
Subject
subjectID - PK
personID - FK
...
Contact
subjectID - FK
...
I have a form which points to the Person table. I am attempting to create an action button which opens the contacts for each person record. The problem is the middle subject table. I am wondering if there was a way to retrieve the subjectID using VB so I can pass that value into the open form command.
When they click the button all I have is the personID of the record they selected. I need to retrieve the subjectID value somehow from this personID value. I was thinking of using a sql query but from my research I wasn't able to find one that supports a select statement.
Any help is greatly appreciated.
Thanks!