List Box Right Alignment - is it possible?

M

mitja

Hi,
I am using a sub to create a list in a form. There are a few columns with
numbers and I need them right aligned. Is it possible?
Thanks
Mitja

Code:
Me.ListN.ColumnCount = 6
Me.ListN.ColumnWidths = "0cm;4cm;4cm;4cm;4cm;4cm"
Me.ListN.ColumnHeads = True
Me.ListN.RowSource = "SELECT DISTINCTROW ....
 
F

fredg

Hi,
I am using a sub to create a list in a form. There are a few columns with
numbers and I need them right aligned. Is it possible?
Thanks
Mitja

Code:
Me.ListN.ColumnCount = 6
Me.ListN.ColumnWidths = "0cm;4cm;4cm;4cm;4cm;4cm"
Me.ListN.ColumnHeads = True
Me.ListN.RowSource = "SELECT DISTINCTROW ....

See:
http://www.lebans.com/justicombo.htm
 
J

John W. Vinson

I am using a sub to create a list in a form. There are a few columns with
numbers and I need them right aligned. Is it possible?

A listbox isn't the ideal tool for this purpose - could you consider using a
Continuous subform, with textboxes (which can be right aligned)?
 

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