Please help me... almost finished project
I have a multiselect list box
many columns and many rows,
ie patientid, callid, appointmentdate, fname, lname, batchno etc.
I have an unbount text box called "bn"
I have a command button which I am trying to make on click event make all batchno selected in the multiselect list box change to the text value in the text box bn one types
Having great difficulty
I have got this far but it does not work
this is driving me crazy aft 3 days
enclosed is what i have done
------------------------------------------------------
Private Sub Command22_Click() '-------Attempt to change col 8 based on bn
Dim frm As Form, ctl As Control
Dim varItm As Variant, intI As Integer
For Each varItm In Forms!batch!List14.ItemsSelected ' show me the row/s selected
intI = 8 ' 8 column across please to the batch row
Me.batchno.Value = bn.Value
MsgBox ("HELLO " & Forms!batch!List14.Column(8, varItm))
' Next intI
Next varItm
End Sub
I have a multiselect list box
many columns and many rows,
ie patientid, callid, appointmentdate, fname, lname, batchno etc.
I have an unbount text box called "bn"
I have a command button which I am trying to make on click event make all batchno selected in the multiselect list box change to the text value in the text box bn one types
Having great difficulty
I have got this far but it does not work
this is driving me crazy aft 3 days
enclosed is what i have done
------------------------------------------------------
Private Sub Command22_Click() '-------Attempt to change col 8 based on bn
Dim frm As Form, ctl As Control
Dim varItm As Variant, intI As Integer
For Each varItm In Forms!batch!List14.ItemsSelected ' show me the row/s selected
intI = 8 ' 8 column across please to the batch row
Me.batchno.Value = bn.Value
MsgBox ("HELLO " & Forms!batch!List14.Column(8, varItm))
' Next intI
Next varItm
End Sub