ok here is the code: then I tell the problem
Private Sub contractdata_AfterUpdate()
Dim lst As ListBox
Dim intI As Integer, intJ As Integer
Set lst = Me!contractdata
' Print value of each column for each row.
For intI = 0 To lst.ListCount - 1
For intJ = 0 To lst.ColumnCount - 1
Me!date = [contractdata].Column(0)
Me!con = [contractdata].Column(1)
Me!sold = [contractdata].Column(2)
Me!ship = [contractdata].Column(3)
Next intJ
Next intI
End Sub
ok I have a listbox name contract data, ,and several text boxes. The listbox is set to multi select, and it puts my data in the respective text box, per code. It works but when I multi select it just changes the first line, and doesn't keep listing them in my text boxes. What am I doing wrong?
Thanks
zypha
Private Sub contractdata_AfterUpdate()
Dim lst As ListBox
Dim intI As Integer, intJ As Integer
Set lst = Me!contractdata
' Print value of each column for each row.
For intI = 0 To lst.ListCount - 1
For intJ = 0 To lst.ColumnCount - 1
Me!date = [contractdata].Column(0)
Me!con = [contractdata].Column(1)
Me!sold = [contractdata].Column(2)
Me!ship = [contractdata].Column(3)
Next intJ
Next intI
End Sub
ok I have a listbox name contract data, ,and several text boxes. The listbox is set to multi select, and it puts my data in the respective text box, per code. It works but when I multi select it just changes the first line, and doesn't keep listing them in my text boxes. What am I doing wrong?
Thanks
zypha