Avatar of pdvsa
pdvsa
Flag for United States of America asked on

Format Currency $#,##0.00_);[Red]($#,##0.00)

Experts:  how can I format the below as red.  The Outgoing Amt is always negative and the data displaying is in data format and I do not want it in a form.  I need to apply the formatting as found in Excel: $#,##0.00_);[Red]($#,##0.00) but when I replace "Currency" with $#,##0.00_);[Red]($#,##0.00) the data is not formatted that way when i view it in datasheet.  This is in the query design window.  

OutgoingAmt: Format(IIf([Debit / Credit Indicator]="D",[Amount]*-1,""),"Currency")
Microsoft Access

Avatar of undefined
Last Comment
pdvsa

8/22/2022 - Mon
John Tsioumpris

I am a bit confused...you want to display negatives in Red ?
If this is the case then you need Conditional Formatting...

pdvsa

ASKER
Yes and with the parenth.  Its in data sheet (query design window).  I dont see the conditional formatting functionality in data sheet.  I think I would need to apply the format either in the formula itself (replacing "Currency" with that $#,##0.00_);[Red]($#,##0.00) or in the properties sheet but the $#,##0.00_);[Red]($#,##0.00)  doesnt format as such in the properties sheet.  
John Tsioumpris

I did checked on Excel...is something that i have never used before...but my original suggestion is probably what you need.
Just format the value as Currency and use Conditional formatting to turn Fore Color to red if Value <0
Your help has saved me hundreds of hours of internet surfing.
fblack61
John Tsioumpris

Datasheet....hmm... never use them...too restricted...i always go with Continuous forms...let me check
John Tsioumpris

CF works fine on datasheet
John Tsioumpris

Well just switch your form to Design View.. go to Format Tab..select the field in question and Create new Rule in Conditional Formatting.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
pdvsa

ASKER
John, sorry but its not a form though.  I am in an append query.  I dont think there is formatting like that in an append. If so let me know.  
John Tsioumpris

The datasheet you mentioned is not a form?
if it's plain query I think you cannot apply color formatting...
pdvsa

ASKER
no its not in a form.  It is an append.  Plain query. I thought maybe there was some way to apply the shading like you can apply the currency format but seems like only currency can be applied and nothing on top of that (ie red)
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
ASKER CERTIFIED SOLUTION
Gustav Brock

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
pdvsa

ASKER
Nice.  It works.  Thank you very much!
I did modify:
[Black]0.00;[Red]\-0.00;[Blue]0.00
to:
[Black]0.00;[Red]($#,##0.00);[Blue]0.00