I have a form, ContractEntry, that has a combo box, Contractcbo, that the dropdown box is filled with a field, Symbol (text), from a query, MarginsPrices. The selection made is entered into the record using Control Source into the field Contract of the table AllContracts.
The Row Source for Contractcbo is
SELECT MarginsPrices.Symbol, [MarginsPrices].[Margin] FROM MarginsPrices;
What I now need on the same form is for a textbox to be populated with the number, Margin, from the MarginsPrices table. This number then needs to be saved with the rest of the data entered on the ContractEntry form into the table AllContracts. The number Margin changes daily and I want to save it in the record as what it was when I entered the record.
I tried this
Private Sub Contractcbo_AfterUpdate()
Me.Margintextbox = Me.Contractcbo.Column(2)
End Sub
but it doesn't work.
Help!