C
chris
On a main form giving "Organisation" details I have a subform showing
brief details of persons associated with that organisation in
continuous forms format. By clicking on the record selector of a
record in this sub form I want to open a form which gives complete
information about the relationship between the organisation and the
person. I am using the following code to do this
Private Sub Form_DblClick(Cancel As Integer)
DoCmd.OpenForm "frmEditPerOrg", , , "PerOrgID = " & Me!PerOrgID
End Sub
However frmEditPerOrg opens with a blank new record, not the one
specified in the where condition. I have checked the filter property
of the form and it contains the correct PerOrgID but it hasn't been
applied.
I have already used exactly the same procedures elsewhere in the
database for relatioships between "Projects" and "people" and
"Projects" and "organisations" and these work as I would want. In
other cases such as the one above this just opens a new record. I
can't see what is making the difference.
Can anyone suggest the source of the problem or how I might
investigate it further. I've run out of ideas!
Chris
brief details of persons associated with that organisation in
continuous forms format. By clicking on the record selector of a
record in this sub form I want to open a form which gives complete
information about the relationship between the organisation and the
person. I am using the following code to do this
Private Sub Form_DblClick(Cancel As Integer)
DoCmd.OpenForm "frmEditPerOrg", , , "PerOrgID = " & Me!PerOrgID
End Sub
However frmEditPerOrg opens with a blank new record, not the one
specified in the where condition. I have checked the filter property
of the form and it contains the correct PerOrgID but it hasn't been
applied.
I have already used exactly the same procedures elsewhere in the
database for relatioships between "Projects" and "people" and
"Projects" and "organisations" and these work as I would want. In
other cases such as the one above this just opens a new record. I
can't see what is making the difference.
Can anyone suggest the source of the problem or how I might
investigate it further. I've run out of ideas!
Chris