hi there, again many thanks to those who continously take time to volunteer answers to others techy problems.
On the primary form i have a combo box where i can select an investment advisor to be associated with a particular product. The product table stores the Investment Advisor selected in the combo box. That is good. Beside the combo box however, i have a command button which is supposed to open another form displaying all related information about that investment advisor. The related information is displayed, but instead of the investment advisor's name showing up (in the name field), i get the autonum associated with that investment advisor.
The following is the code associated with the event procedure on the command button.
' Need to be sure that the "Investment Advisor" textbox is populated so that
' there is information to be displayed on the form to be opened.
If Me!cboInvestmentAdvisor <> "" Then
DoCmd.OpenForm stDocName
Forms![Investment Advisor form]![txtInvestment Advisor] = Me.cboInvestmentAdvisor
Else
DoCmd.RunMacro "MsgBox - No InvestAdvisor"
End If
Just wondering if something could be added to display the Investment Advisor name instead of the autonumber.
The control source of the Investment Advisor name on the second form is set to the Investment Advisor Name field of the Invest Advisor table and not the autonum.
thanks vm ........... roddy
On the primary form i have a combo box where i can select an investment advisor to be associated with a particular product. The product table stores the Investment Advisor selected in the combo box. That is good. Beside the combo box however, i have a command button which is supposed to open another form displaying all related information about that investment advisor. The related information is displayed, but instead of the investment advisor's name showing up (in the name field), i get the autonum associated with that investment advisor.
The following is the code associated with the event procedure on the command button.
' Need to be sure that the "Investment Advisor" textbox is populated so that
' there is information to be displayed on the form to be opened.
If Me!cboInvestmentAdvisor <> "" Then
DoCmd.OpenForm stDocName
Forms![Investment Advisor form]![txtInvestment Advisor] = Me.cboInvestmentAdvisor
Else
DoCmd.RunMacro "MsgBox - No InvestAdvisor"
End If
Just wondering if something could be added to display the Investment Advisor name instead of the autonumber.
The control source of the Investment Advisor name on the second form is set to the Investment Advisor Name field of the Invest Advisor table and not the autonum.
thanks vm ........... roddy