weilerdo67
New member
- Local time
- Yesterday, 19:44
- Joined
- Aug 2, 2019
- Messages
- 3
Hi, I think im doing this wrong and Im hoping someone can help me. I have a report that I want to have an image show depending on the value of a field. ON the report I have a field called AvgOfTemp and what I need is if the temp is greater the 100 show img36 if the temp is between 32 and 100 show img32 and finally if the temp is below 32 show img40. I am new to coding and somewhat lost. this is the statement I have but it is only showing img40 no matter what the value in AvgOfTemp is. Any help would be greatly appreciated.
If Me.AvgOfTemp < 100 Then
img32.Visible = True
img36.Visible = False
Else
img32.Visible = False
img36.Visible = True
End If
If Me.AvgOfTemp < 32 Then
img40.Visible = True
img32.Visible = False
Else
img40.Visible = False
img32.Visible = True
End If
If Me.AvgOfTemp < 100 Then
img32.Visible = True
img36.Visible = False
Else
img32.Visible = False
img36.Visible = True
End If
If Me.AvgOfTemp < 32 Then
img40.Visible = True
img32.Visible = False
Else
img40.Visible = False
img32.Visible = True
End If