Control format alignment? (1 Viewer)

Gasman

Enthusiastic Amateur
Local time
Today, 03:31
Joined
Sep 21, 2011
Messages
14,265
Hi all,

I have two controls on a form as format currency with a DSum as their source.
Below those I have another control that shows the difference.

If I use format Currency for the last (balance) control everything lines up, but I would like to use the format options that I have seen CJ_London mention often, that is something along the lines of

Code:
£#,##0.00[Green];(£#,##0.00)[Red]
however the alignment is then a little out.?

I've tried using £#,##0.00 and £#,##0.00[Black] for the other two fields instead of Currency, but that makes no difference.?

Is there a way to get them to align tidily please?

TIA
 

Attachments

  • CurrencyFormat.PNG
    CurrencyFormat.PNG
    2.6 KB · Views: 25

Minty

AWF VIP
Local time
Today, 03:31
Joined
Jul 26, 2013
Messages
10,371
I think it is allowing for the brackets if negative, so try adding a space in the positive format after the final 0?
 

Gasman

Enthusiastic Amateur
Local time
Today, 03:31
Joined
Sep 21, 2011
Messages
14,265
Doh!:banghead:

Spot on Minty, thank you. I can live without the brackets, at least for now.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 10:31
Joined
May 7, 2009
Messages
19,233
I think [red] must be inside the parenthesis.
Use same format for the two without color.
Chk the alignment to right.
 

Gasman

Enthusiastic Amateur
Local time
Today, 03:31
Joined
Sep 21, 2011
Messages
14,265
Hi arnelgp,
Putiing the olour inside the bracket made no difference. The alignment is already set to right.
I've changed the other fields to
Code:
£#,##0.00
that actually has a space after the last 0 and that works, so brackets are back in. :D


I think [red] must be inside the parenthesis.
Use same format for the two without color.
Chk the alignment to right.
 

Galaxiom

Super Moderator
Staff member
Local time
Today, 12:31
Joined
Jan 20, 2009
Messages
12,852
Are you using a monospaced font so all characters are the same width?
 

Gasman

Enthusiastic Amateur
Local time
Today, 03:31
Joined
Sep 21, 2011
Messages
14,265
Calibri 11 ?
I just use the default that Access supplies.
 

isladogs

MVP / VIP
Local time
Today, 03:31
Joined
Jan 14, 2017
Messages
18,216
This shows a minor change to the NumberField formatting in the deliberately hideously formatted sample database I listed earlier:



The red & green entries in the NumberField look perfectly aligned to me
Blue & magenta items almost perfect

Format used for Number field is:0.00[Green] ;-(0.00)[Red];[Blue]"0 ";[Magenta]"Nothing Entered "

I'm also using the default Access font - Calibri 11pt
 

Attachments

  • Capture.PNG
    Capture.PNG
    24.3 KB · Views: 113

Gasman

Enthusiastic Amateur
Local time
Today, 03:31
Joined
Sep 21, 2011
Messages
14,265
I believe Minty was correct saying Access was allowing for the closing bracket.?

Using the custom format mentioned previously and not Currency for the other controls produces the image attached.

That is good enough for me.
 

Attachments

  • CurrencyFormat.PNG
    CurrencyFormat.PNG
    2.3 KB · Views: 34

isladogs

MVP / VIP
Local time
Today, 03:31
Joined
Jan 14, 2017
Messages
18,216
I believe Minty was correct saying Access was allowing for the closing bracket.?

Using the custom format mentioned previously and not Currency for the other controls produces the image attached.

That is good enough for me.

Yes Minty is correct - I was trying to fix the 0 and Nothing entered as well
 

Galaxiom

Super Moderator
Staff member
Local time
Today, 12:31
Joined
Jan 20, 2009
Messages
12,852
Calibri 11 ?
I just use the default that Access supplies.

Calibri is a proportional font. The characters are not a consistent width so the won't necessarily line up in columns.

Courier New is a commonly used fixed width font but there are others.
 

Gasman

Enthusiastic Amateur
Local time
Today, 03:31
Joined
Sep 21, 2011
Messages
14,265
Thanks Galaxiom, I'll mind that for the future.
The extra space is enough to line up the numbers at least.

Calibri is a proportional font. The characters are not a consistent width so the won't necessarily line up in columns.

Courier New is a commonly used fixed width font but there are others.
 

Users who are viewing this thread

Top Bottom