I try to setup a code in which I want to test on the condition to display or not display a picture in a report.
First a question :
- do I have to open the report before or after the condition tests ?
The pictures - !YouaredoingGreat are predefined pictures in my report with the property 'visible' off
My code :
Expand|Select|Wrap|Line Numbers
- Dim weekrapport2 As Report
- Set weekrapport2 = Report_WEEKRAPPORT
- With weekrapport2
- If weektotaalgained > 69 And weektotaalgained < 80 Then
- !YouaredoingGreat.Visible = False
- !YouaredoingGood.Visible = True
- !YouaredoingGood2.Visible = True
- !YouaredoingAverage.Visible = False
- !YouaredoingBellowAverage.Visible = False
- DoCmd.OpenReport stDocName, acViewPreview
- End If
no error message, condition is fulfilled, picture is not visible ! Why ????
Thanks