D
Dr Poot
Hello, I would like some help to open up a form on a double click on an item
in a list (called list0). My relationships are:
one Product_ID - many Job_ID
one Job_ID - many Tape_ID
one Tape_ID - many Segment_ID
All ID's are autonumber. The main form has a subform, which has a subform,
which has a subform (ie, nested subforms - confirming table relationships).
The list contains ID's - Product_ID as column(0), and the second subform -
Tape_ID as column(1). When the user double clicks on an entry in the list ,
I would like the form to open (called frmProduct) with the corresponding data
in the second subform, being the subform relating to Tape_ID. So far I've
guessed this:
If Me.List0.Column(6) = "" Then
DoCmd.OpenForm "frmProduct", acNormal, , "frmSubTape!Tape_ID = " &
Me.List0.Column(1)
Else
DoCmd.OpenForm "frmProduct", acNormal, , "Product_ID = " & Me.List0.Column(0)
End If
The ELSE statement works fine, however the first IF statement doesn't *work*
in the way I've wanted, described above. I'm just not sure how to refer to
the sub-subform ID called Tape_ID.
Any help would be appreciated - and I can easily submit more information if
required. Many thanks,
- Matthew
in a list (called list0). My relationships are:
one Product_ID - many Job_ID
one Job_ID - many Tape_ID
one Tape_ID - many Segment_ID
All ID's are autonumber. The main form has a subform, which has a subform,
which has a subform (ie, nested subforms - confirming table relationships).
The list contains ID's - Product_ID as column(0), and the second subform -
Tape_ID as column(1). When the user double clicks on an entry in the list ,
I would like the form to open (called frmProduct) with the corresponding data
in the second subform, being the subform relating to Tape_ID. So far I've
guessed this:
If Me.List0.Column(6) = "" Then
DoCmd.OpenForm "frmProduct", acNormal, , "frmSubTape!Tape_ID = " &
Me.List0.Column(1)
Else
DoCmd.OpenForm "frmProduct", acNormal, , "Product_ID = " & Me.List0.Column(0)
End If
The ELSE statement works fine, however the first IF statement doesn't *work*
in the way I've wanted, described above. I'm just not sure how to refer to
the sub-subform ID called Tape_ID.
Any help would be appreciated - and I can easily submit more information if
required. Many thanks,
- Matthew