OK ... I'm going nuts.
I'm trying to hide the Add New button in ASPRunner 6.3 when the Group of the individual logged in does not match the Group of the individual who created a parent record. I can do this by hard-coding the Group code thus (into the "Before display" event of the child page):
strSecurityGroup = "00"
if Session("GroupID")= strSecurityGroup then
xt.assign "newrecord_controls",true
else
xt.assign "newrecord_controls",false
end if
This works and hides the Add New button when an individual's Security Group is not "00."
The next step is to set the strSecurityGroup value to the value of the "owner_id" field displayed in the parent page. In other words, only the individuals who created the parent record can create associated child records.
For the life of me, I cannot figure out how to refer to the parent form's "owner_id" field.
Help!