Get Data from list box

A

Andy Ingall

I have a list box with column headings and 4 columns.
the data in column 4 is a number. I need to get capture
that number so that i can use it to run in a query.

I have the following code.

Private Sub List23_DblClick(Cancel As Integer)
Dim a As String, varItem As Variant

a = a & Me!List23.Column(3, varItem)
MsgBox a

End Sub

When I double click on a row the msgbox just gives me the
column heading. Any ideas what is wrong?

Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top