WineSnob
Not Bright but TENACIOUS
- Local time
- Today, 11:13
- Joined
- Aug 9, 2010
- Messages
- 211
I am trying to show or hide an image based on the detail records value.
I want to show a Green up arrow image If Me.IncomeFromActual > Me.EstIncome or show a Red Down Arrow If Me.IncomeFromActual < Me.EstIncome. The actual report has 15 records and some should show red arrow and some should show green arrow but ALL show green which is the correct image for the first record.
Here is what I have:
Private Sub Report_Load()
Me.ImageRed.Visible = False
Me.ImageGreen.Visible = False
If Me.IncomeFromActual < Me.EstIncome Then
Me.ImageRed.Visible = True
End If
If Me.IncomeFromActual > Me.EstIncome Then
Me.ImageGreen.Visible = True
End If
End Sub
I want to show a Green up arrow image If Me.IncomeFromActual > Me.EstIncome or show a Red Down Arrow If Me.IncomeFromActual < Me.EstIncome. The actual report has 15 records and some should show red arrow and some should show green arrow but ALL show green which is the correct image for the first record.
Here is what I have:
Private Sub Report_Load()
Me.ImageRed.Visible = False
Me.ImageGreen.Visible = False
If Me.IncomeFromActual < Me.EstIncome Then
Me.ImageRed.Visible = True
End If
If Me.IncomeFromActual > Me.EstIncome Then
Me.ImageGreen.Visible = True
End If
End Sub