Make an object (un)visible due to a criterium

  • Thread starter Thread starter Raymond van der Meer
  • Start date Start date
R

Raymond van der Meer

Hello,

I have a form on wich I have an image-object.
I would like to make this image visible when a
particular query contains at least 1 record.

If this query is empty (no records at all) the image
should be invisible.

How can I manage this? :)

Thanks in advance!

Raymond, the netherlands
 
Hello,

I have a form on wich I have an image-object.
I would like to make this image visible when a
particular query contains at least 1 record.

If this query is empty (no records at all) the image
should be invisible.

How can I manage this? :)

Thanks in advance!

Raymond, the netherlands

Is the query the recordsource for the form?
In the form's Load event:
ImageControl.Visible = Me.RecordSetClone.RecordCount >=1
 
Hi Fred,

No, this form hasn't a particular recordsource (it's a menu-form with some
buttons to
activiate a copple reports in printview)

You gave me another view on things!
Ofcourse there has to be a recordsource when you want to base an action upon
that! :)

It works fine, the image does what it was ment to do :)

Thanks!

Raymond
 
Back
Top