I have tried these and multiple combination of codes (from multiple websites) and non of them work for this seemingly simple task. I am using Access 2007. I have 3 fields I would like to auto-populate from a selection in a list box. The list box is controlled from a query. All the fields are included in the query grid. The query is listed as the control source
The following code worked for me in Access 2003:
What I am trying to use now in Access 2007, since the previous code no longer works is:
However, when I click the selection; I just get a little bell that rings and no action.
I even tried the suggestion to use this code:
in the Control Source of the receiving Fields
However, this doesn't work either.
After days trying to find a solution; I am totally frustrated. What am I missing here?
The following code worked for me in Access 2003:
Code:
Private Sub List114_Click() Me![Upline ID] = Me!List114.Column(1) Me![Upline First Name] = Me!List114.Column(2) Me![Upline Last Name] = Me!List114.Column(3) End Sub
Code:
Private Sub List114_Click() Me.[Upline ID] = Me.List114.Column(1) Me.[Upline First Name] = Me.List114.Column(2) Me.[Upline Last Name] = Me.List114.Column(3) End Sub
I even tried the suggestion to use this code:
Code:
=[List114].[Column](3)
However, this doesn't work either.
After days trying to find a solution; I am totally frustrated. What am I missing here?
Comment