Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking a field (not a subform)

Status
Not open for further replies.

EastCoast

Instructor
Joined
Apr 13, 2006
Messages
31
Location
US
<b>The Setting:</b> I have a "Classes" form and an "Evaluations" form whose underlying tables are 1 (Classes) to Many (Evaluations). The Classes form has its own subform and the Evaluations form has its own subform.

<b>What I would like:</b> is to click on a button on the Classes main form and have it take me to the Evaluations form - that I can do, but when I get to the Evaluations form I need it to know somehow that it belongs to the specific class record I just came from before I clicked. Foro example, if I am entering the class "Conflict Management" and then click on the button to go to the "Evaluations" form, I want a field there to tie it back so that it knows these evaluation scores belong with the "Conflict Management" class.

<b>What I've done:</b> I have tried placing the "ClassID" field (the foreign key, since it is the primary key in the Classes table) onto the Evaluations table, but I do not know how to link it back to the classes table so that it automatically populates the ClassID for the particular class that was on the previous screen (the class I was entering before clicking on the button to go to the Evaluations form). Make sense?
 
You need to load your form with a query that will do this for you.....

inner join probably
 
Actually not a inner join but more of a left join, any way you can do this via your access window.... I would personaly get the value from a recordset and have it populate in your form....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top