Can I change a Label's Caption?

B

Bill Johnson

I have a label on a form that changes depending on the value of a field
called AreaType.

If AreaType is Sq Ft, then a label for Total Sq Ft is Total SqFt. If
AreaType is Acres then a label changes to Total Acres.

Can I get a label on my report to do the same thing based on the value in
AreaType?
 
R

RonaldoOneNil

Replace the label with a text box and set its control source property to
=IIf([AreaType]="Sq Ft","Total SqFt","Total Acres")
 
B

Bill Johnson

Thanks. Thats a good solution - a lot easier than the direction I was taking
myself.
 

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

Top