G
Guest
Hey guys,
I have an main for "Client2", with a subform "Deal", and "Deal" has a
subform "Portfolio" which is on a tab. On "Deal" I have a listbox that brings
up a list of Portfolios for that specific Deal_ID. I want the doubleclick on
the listbox to advance the "Portfolio" subform on the tab to the
corresponding Portfolio. This way the user can see a list of related
Portfolios and pick the one that they want to see information on.
Does anyone have any ideas on how to get the corresponding record into the
subform? I've tried:
Private Sub List21_DblClick(Cancel As Integer)
'Forms!frmClient2!frmDeal!frmPortfolio!Portfolio_Key = Me.List21.Column(0)
End Sub
I am getting "Run-time error '2448'
You can't assign a value to this object.
I know this means I am trying to replace the primary key in the Portfolio
record. Can anyone make a suggestion as to the correct direction I should
attempt this from? I have thought about GoToRecord, but I'm not a VBA expert.
Thanks for any help.
I have an main for "Client2", with a subform "Deal", and "Deal" has a
subform "Portfolio" which is on a tab. On "Deal" I have a listbox that brings
up a list of Portfolios for that specific Deal_ID. I want the doubleclick on
the listbox to advance the "Portfolio" subform on the tab to the
corresponding Portfolio. This way the user can see a list of related
Portfolios and pick the one that they want to see information on.
Does anyone have any ideas on how to get the corresponding record into the
subform? I've tried:
Private Sub List21_DblClick(Cancel As Integer)
'Forms!frmClient2!frmDeal!frmPortfolio!Portfolio_Key = Me.List21.Column(0)
End Sub
I am getting "Run-time error '2448'
You can't assign a value to this object.
I know this means I am trying to replace the primary key in the Portfolio
record. Can anyone make a suggestion as to the correct direction I should
attempt this from? I have thought about GoToRecord, but I'm not a VBA expert.
Thanks for any help.