W
whitjl143
I have a report that I want to show the value of it when another field is a
certain value.
Field1 - Material
Field2 - LoadAt
I have the current code:
Me.LoadAt.Visible = Me.Material = "238" Or Me.Material = "239" Or
Me.Material = "240" Or Me.Material = "241" Or Me.Material = "242" Or
Me.Material = "243" Or Me.Material = "244" Or Me.Material = "245" Or
Me.Material = "246" Or Me.Material = "247" Or Me.Material = "248" Or
Me.Material = "249" Or Me.Material = "250" Or Me.Material = "251" Or
Me.Material = "252" Or Me.Material = "253" Or Me.Material = "254" Or
Me.Material = "255" Or Me.Material = "256" Or Me.Material = "257" Or
Me.Material = "258" Or Me.Material = "259" Or Me.Material = "260" Or
Me.Material = "261" Or Me.Material = "262" Or Me.Material = "263" Or
Me.Material = "264"
This works fine except if I add another material I have to keep going back
into the code to add the materialID there also. Is there a way to set this
up so the LoadAt field will print only if the Material is "Haul Only" (which
is the value of the Material field not the MaterialID).
certain value.
Field1 - Material
Field2 - LoadAt
I have the current code:
Me.LoadAt.Visible = Me.Material = "238" Or Me.Material = "239" Or
Me.Material = "240" Or Me.Material = "241" Or Me.Material = "242" Or
Me.Material = "243" Or Me.Material = "244" Or Me.Material = "245" Or
Me.Material = "246" Or Me.Material = "247" Or Me.Material = "248" Or
Me.Material = "249" Or Me.Material = "250" Or Me.Material = "251" Or
Me.Material = "252" Or Me.Material = "253" Or Me.Material = "254" Or
Me.Material = "255" Or Me.Material = "256" Or Me.Material = "257" Or
Me.Material = "258" Or Me.Material = "259" Or Me.Material = "260" Or
Me.Material = "261" Or Me.Material = "262" Or Me.Material = "263" Or
Me.Material = "264"
This works fine except if I add another material I have to keep going back
into the code to add the materialID there also. Is there a way to set this
up so the LoadAt field will print only if the Material is "Haul Only" (which
is the value of the Material field not the MaterialID).