I have a list box in a form with three columns
1.ID
2.Name
3.Age
In the same form i have three text boxes corresponding for the above columns.
The form record source property is set to the Table.ID field is autonumber.
Now i am facing a error.When i select one row in a list box ,i want to assign the values in the list box row back to text box for updation purpose.Now Name and age i am able to assign but for ID it is showing the error message
"You cant assign a value to this object".Can any one advise me pls
The code in my listview dbl click event is as below
Expand|Select|Wrap|Line Numbers
- With Me.List15
- For i = 0 To .ListCount - 1
- If .Selected(i) = True Then
- Me.Fare_Line_Id.Value = .Column(0, i)---error comes here.
- Me.Name.Value = .Column(1, i)
- Me.Age.Value = .Column(2, i)
- End If
- Next i
- End With