Display in red when negagive, black in zero or positive

  • Thread starter Thread starter Song Su
  • Start date Start date
S

Song Su

I have a calculated control on the form. I want it to be in Red color when
it's negative, otherwise, in Black color.

Thanks.
 
Song said:
I have a calculated control on the form. I want it to be in Red color
when it's negative, otherwise, in Black color.

Thanks.

The format property for controls displaying numbers can consist of four
sections separated by semi-colons. They respectively set the formatting for
positive numbers, negative numbers, zero values and Null values.

In your case try something like...

0[Black];0[Red];0[Black]
 
still don't understand. can you provide steps as to how to do it? Thanks.

- Song

Rick Brandt said:
Song said:
I have a calculated control on the form. I want it to be in Red color
when it's negative, otherwise, in Black color.

Thanks.

The format property for controls displaying numbers can consist of four
sections separated by semi-colons. They respectively set the formatting
for positive numbers, negative numbers, zero values and Null values.

In your case try something like...

0[Black];0[Red];0[Black]
 
Step 1: Find the Format property on the Properties sheet for the textbox.
Step 2: Set the Format property to something like 0[Black];0[Red];0[Black]

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


Song Su said:
still don't understand. can you provide steps as to how to do it? Thanks.

- Song

Rick Brandt said:
In your case try something like...

0[Black];0[Red];0[Black]

Song said:
I have a calculated control on the form. I want it to be in Red color
when it's negative, otherwise, in Black color.

Thanks.

The format property for controls displaying numbers can consist of four
sections separated by semi-colons. They respectively set the formatting
for positive numbers, negative numbers, zero values and Null values.
 
Got it. Thanks.

Douglas J. Steele said:
Step 1: Find the Format property on the Properties sheet for the textbox.
Step 2: Set the Format property to something like 0[Black];0[Red];0[Black]

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


Song Su said:
still don't understand. can you provide steps as to how to do it? Thanks.

- Song

Rick Brandt said:
In your case try something like...

0[Black];0[Red];0[Black]

Song Su wrote:
I have a calculated control on the form. I want it to be in Red color
when it's negative, otherwise, in Black color.

Thanks.

The format property for controls displaying numbers can consist of four
sections separated by semi-colons. They respectively set the formatting
for positive numbers, negative numbers, zero values and Null values.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top