column name

S

smk23

Is there a way to get the name of a column from a listbox?
What I tried was

strColName= Nz(Me.ListBox.Column(3).Name , "")

with no results.
Thanks,
Sam
 
D

Douglas J. Steele

I don't believe so, since list boxes aren't always populated through
recordsets and therefore don't always have associated columns.
 
M

Marshall Barton

smk23 said:
Is there a way to get the name of a column from a listbox?
What I tried was

strColName= Nz(Me.ListBox.Column(3).Name , "")


Not sure it's what you want, but if you have ColumnHeads set
to Yes, you can get the column heading by using
Me.ListBox.Column(0,3)
 

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