- Local time
- Today, 15:40
- Joined
- Sep 12, 2006
- Messages
- 16,006
is there a way to use format or some other command to force columns to line up in a text box - ie to oocupy a specific number of characters.
do you need a fixed size font - is there one?
so
ID__________Text_________Value
1___________MyText_________12
23__________MyNextText____213
ie format (id,4 char length)
format (text, 20 char length say)
[edited
now found courier font, which is OK, however, with
mydetail = mydetail & vbCrLf & Format(rst!headertext, "@@@") & " " & _
Format(rst!LoadText, "@@@@@@@@@@@@@@@") & " " & Format(rst!items, "######0")
headertext is always 1 char, so thats OK
loadtext is being right justified, (but i want it left justified)
items is showing as 19, and 9, but not aligning - (they are actually left-aligning, instead of right aligning)
how should I set out the format masks to get this working please
do you need a fixed size font - is there one?
so
ID__________Text_________Value
1___________MyText_________12
23__________MyNextText____213
ie format (id,4 char length)
format (text, 20 char length say)
[edited
now found courier font, which is OK, however, with
mydetail = mydetail & vbCrLf & Format(rst!headertext, "@@@") & " " & _
Format(rst!LoadText, "@@@@@@@@@@@@@@@") & " " & Format(rst!items, "######0")
headertext is always 1 char, so thats OK
loadtext is being right justified, (but i want it left justified)
items is showing as 19, and 9, but not aligning - (they are actually left-aligning, instead of right aligning)
how should I set out the format masks to get this working please
Last edited: