Report - Conditional Field Format

W

whitjl143

I have two fields:

Material
LoadAt

I want the LoadAt field to print if the Material field is "Haul Only". I
don't want the LoadAt field to print if the Material field says anything else.

Thanks so much!
 
F

fredg

I have two fields:

Material
LoadAt

I want the LoadAt field to print if the Material field is "Haul Only". I
don't want the LoadAt field to print if the Material field says anything else.

Thanks so much!

These controls are in the Detail section?
Code the Detail Format event:

Me.[LoadAt].Visible = Me.[Material] = "Haul Only"

Alternatively, you could use an expression in an unbound control (and
not use code at all):

=IIf([Material] = "Haul Only",[LoadAt],"")
 
W

whitjl143

This is not working. It might be because the control source of the LoadAt
field is:
=[Material].Column(2)

Will that mess it up?

--
Jenn


fredg said:
I have two fields:

Material
LoadAt

I want the LoadAt field to print if the Material field is "Haul Only". I
don't want the LoadAt field to print if the Material field says anything else.

Thanks so much!

These controls are in the Detail section?
Code the Detail Format event:

Me.[LoadAt].Visible = Me.[Material] = "Haul Only"

Alternatively, you could use an expression in an unbound control (and
not use code at all):

=IIf([Material] = "Haul Only",[LoadAt],"")
 

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