Question on Sub-Fomr

Question on Sub-Fomr

Thanks for all those who help me solve my entity-relationship problem.  I figured it out that it is best implemented in subforms rather than in look up.  I got another problem though.

In my project, I got two forms

1. Agency Profile
2. EFA Report

I already made the EFA report as subform of agency profile following the tutorial on sub-form.

I am successful in making this but I want it to have additional functionality.  At the moment, when I click the add report function in the agency profile (link) and calls the subform EFA Report, it doesn't call the office name data.  My problem is you have to select again the name of the office for the report.  I want the subform to call the office name data in the agency profile form and locked the data (so that it cant be edited).  This is the feature in the Project Manager Plus that I have seen. 

The code in the Project Manager Plus sample is here below:
if((input.Project_ID == null)) 
{
    projName = Add_a_Project[Project == input.For_the_Project] ;
    Project_ID = projName.ID;  
}
for each userList in Assign_Project [Project_ID == input.Project_ID] sort by range from  to  
{
    Incharge:ui.add(userList.User); 
}

I cant understand this code.  I tried following the code but mine doesnt work.
Here is the link of my project

http://creator.zoho.com/dexterpante/efa-web-monitoring/#View:Agency_Profile_View

Hope you can help me.