Removing a waterwark from code

  • Thread starter Thread starter Jonathan Blitz
  • Start date Start date
J

Jonathan Blitz

Access 2003 ADP

I have code where I set or unset a watermark according to certain rules.

This code is run on the "retreat" event:


Private Sub InhouseCodeGroupHeader_Retreat()
Select Case Me.Status
Case "OP"
Me.Picture = ""
Case "CL"
Me.Picture = "C:\Commissions Phase II\Watermarks\Not For
Payment.JPG"
Case Else
Me.Picture = "C:\Commissions Phase II\Watermarks\Internal Use
Only.JPG"
End Select
End Sub

The setting of the watemark works OK but the line that is meant to remove it
just does nothing!
It runs the code (I put a break there) but nothing happens and the value of
Me.Picture stays the same as it was before.
I CAN change it to another image but not to nothing.

What am I doing wrong?

Jonathan Blitz
 
Jonathon,

A work around that I think should work would be to set the
image visible property to false rather than the picture
property to "".

Worth a try .... ??

Terry
 
There doesn't seem to be an imagevisible property for the Report object nor
for the Report.Picture object.

Jonathan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top