J
JGR
I have the 2 following Double Click Private subs:
MainForm
Private Sub BBP_CommNo_DblClick(Cancel As Integer)
DoCmd.OpenForm "frmMasterList", , , "[CommodityID] =
Forms![frmBBP_BOM]![BBP_CommNo]" 'works!!!
End Sub
SubForm
Private Sub Part_CommNo_DblClick(Cancel As Integer)
DoCmd.OpenForm "frmMasterList", , , "[CommodityID] =
Forms![frmBBP_BOMSubform]![Part_CommNo]"
End Sub
The MainForm works fine but the Subform always ask for
number (Part_CommNo). When I step thru the Macro the value
for Part_ConmmNo is there but it always ask for this
value.
One more question..
Why do I need "[CommodityID] = Forms![frmBBP_BOM]!
[BBP_CommNo]" instead of "[CommodityID] = [BBP_CommNo]"
When I step thru using the shorter of the two it also asks
for the value.
Thanks
MainForm
Private Sub BBP_CommNo_DblClick(Cancel As Integer)
DoCmd.OpenForm "frmMasterList", , , "[CommodityID] =
Forms![frmBBP_BOM]![BBP_CommNo]" 'works!!!
End Sub
SubForm
Private Sub Part_CommNo_DblClick(Cancel As Integer)
DoCmd.OpenForm "frmMasterList", , , "[CommodityID] =
Forms![frmBBP_BOMSubform]![Part_CommNo]"
End Sub
The MainForm works fine but the Subform always ask for
number (Part_CommNo). When I step thru the Macro the value
for Part_ConmmNo is there but it always ask for this
value.
One more question..
Why do I need "[CommodityID] = Forms![frmBBP_BOM]!
[BBP_CommNo]" instead of "[CommodityID] = [BBP_CommNo]"
When I step thru using the shorter of the two it also asks
for the value.
Thanks