mattcornish5
New member
- Local time
- Yesterday, 21:58
- Joined
- Mar 28, 2012
- Messages
- 5
Hi All
i am using the below vba code in the on paint event of the details section of a report.
the code works perfectly, except that the screen continuosly flickers and the code window says the code is running again and again.
is the fact that i am changing a image causing it to repaint thus entering an endless loop?
any ideas would be greatly appreciated.
CODE:
Cheers guys
i am using the below vba code in the on paint event of the details section of a report.
the code works perfectly, except that the screen continuosly flickers and the code window says the code is running again and again.
is the fact that i am changing a image causing it to repaint thus entering an endless loop?
any ideas would be greatly appreciated.
CODE:
Code:
Private Sub Detail_Paint()
If Check42.Value = True Then
Image38.Picture = "\\stor01-phys\AccDB\Tracker V2.0\Resources\check_ok_shield_tick.png"
ElseIf Check42.Value = False Then
Image38.Picture = "\\stor01-phys\AccDB\Tracker V2.0\Resources\shield_exclamation.png"
End If
End Sub
Cheers guys