S
S Liu
Hi there
Hope you can help me with a problem I'm having 
I have form that has two subforms on it. The first one is the mai
one and contains some criminal cases (think of it as a polic
database)
Now, there is another subform underneath this one, which contain
details of all victims related to the current case. What I want i
for this subform to update automatically each time I double click o
or select a new case
Currently I have it that I can bring up the related victims b
double-clicking on the case number, but that pops up in a new window
which I did by using the following simple code on the double-clic
event
=====================
Private Sub org_case_no_DblClick(Cancel As Integer
Dim stDocName As Strin
Dim stLinkCriteria As Strin
stDocName = "View All Victims Related To Case
DoCmd.Close acQuery, stDocName, acSaveN
DoCmd.OpenQuery stDocName, acViewNormal, acReadOnl
End Su
=====================
In this, "View All Victims Related To Case" is just some store
query
I think the problem I'm having is that I'm not sure how to refer t
the victims subform, which is named "View All Victims Related To Cas
subform"
Any help would be greatly appreciated
I have form that has two subforms on it. The first one is the mai
one and contains some criminal cases (think of it as a polic
database)
Now, there is another subform underneath this one, which contain
details of all victims related to the current case. What I want i
for this subform to update automatically each time I double click o
or select a new case
Currently I have it that I can bring up the related victims b
double-clicking on the case number, but that pops up in a new window
which I did by using the following simple code on the double-clic
event
=====================
Private Sub org_case_no_DblClick(Cancel As Integer
Dim stDocName As Strin
Dim stLinkCriteria As Strin
stDocName = "View All Victims Related To Case
DoCmd.Close acQuery, stDocName, acSaveN
DoCmd.OpenQuery stDocName, acViewNormal, acReadOnl
End Su
=====================
In this, "View All Victims Related To Case" is just some store
query
I think the problem I'm having is that I'm not sure how to refer t
the victims subform, which is named "View All Victims Related To Cas
subform"
Any help would be greatly appreciated