I have a combo box for selecting individuals in forms for several transaction tables. It contains the Primary ID in Column(0) [which is hidden], Name in Column(1) and an Amateur Call Sign in Column(2). In several forms, I create an On Click event to store the person's ID into a transaction record, using the code:
Private Sub Liaison_Ag_Click()
Member_ID = Liaison_Ag.Column(0)
End Sub
This works fine, but I would also like to store the Call Sign into its corresponding field, but when I add the line:
Call = Liaison_Ag.Column(2), Access complains. Shouldn't this work?
Private Sub Liaison_Ag_Click()
Member_ID = Liaison_Ag.Column(0)
Call = Liaison_Ag.Column(2)
End Sub
I have been able to do a work-around for this, by adding the member table to the query and making the member call sign available. However, I would like to understand what the issue is here. It would seem reasonable that each column in a combo box should be able to be manipulated.