|
|
Question : Right Justify Number Field in Multi Column List Box
|
|
I have 2 list boxes on a form. When an entry in the first list box is clicked the second list box is filled with the appropriate entries. Both list boxes have multiple columns, and one of the columns in the second list box is a number with field size = double, format=fixed and decimal places=2. The number values are left justified in the column when I would like them to be right justified. The lines are created by an onclick routine with the following command: Orders.RowSource = "SELECT date,cost FROM orders WHERE buyerID=" & Me.Buyers.Column(6) How can I cause the numbers to be right justified within their column?
|
Answer : Right Justify Number Field in Multi Column List Box
|
|
I don't think you can right justify in a list box, but you can get close by formatting the values to pad with spaces, e.g. format("ABC","@@@@@@@@@").
|
|
|
|
|