Not sure what's going wrong with this code. Trying to simply populate a text field after a selection is made to a corresponding combo box. getting a run-time error 2471.
Private Sub cboticker_AfterUpdate()
Me.txtCompany.ControlSource = DLookup("Company", "Companytable", "cboticker = " & Nz([Ticker], 0))
Me.txtCompany.Requery
end sub