Just wanted to ask you in LBconnections table how could align the amount to the middle (3rd column)?
The column order in a listbox follows the SELECT order. If you wanted lastName and then firstName:
SELECT lastName, firstName...
Therefore you woud have to change the SQL
And is there a way to give a number format to the numbers in that column (instead of 35687 to be 35.687 or 35 687).
The Format command works well with adding spaces and commas but I'm not sure about periods, at least in American mode this causes confusion with decimal points. (This assumes that 35687 is numeric datatype).
SELECT Format(35687, "##,###") 'returns 35,687
SELECT Format(35687, "## ###") 'returns 35 687
SELECT Format(35687, "##.###") 'returns 35687.
Thus the last item above doesn't "work" (at least not in American mode). And if it's not numeric, even the first two might not work. You might need to change it to numeric:
SELECT Format(CLng(35687), "##,###") 'returns 35,687
SELECT Format(CLng(35687), "## ###") 'returns 35 687
You could maybe do this
SELECT IIF(Len(Ctr(356887) > 2, "."Right(35687, 3)
woops, gotta go - I will fix that last line when I come back.