Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / September 2005

Tip: Looking for answers? Try searching our database.

Conditional Image in a Report

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Amy E. Baggott - 14 Sep 2005 21:10 GMT
I'm creating an invoice report that includes a logo in the page header (the
same for every record).  However, if a record meets certain criteria, there
is a second logo I want to display/print next to it -- but only for the
records that meet those criteria.  Is there a relatively simple way to do
this?
Signature

Amy E. Baggott

"I''m going crazy and I''m taking all of you with me!" -- Linda Grayson

TerryC - 15 Sep 2005 04:04 GMT
Amy,

Design your report with the second image on it. Set the visible property to
false (makes the image invisible). In the section's "on format" event (the
section that contains the image) add something like:

if (your condition here) = true then
me.[image control name].visible = true
else
me.[image control name].visible = false
end if

Your condition might be [field2] = 5
in which case the first line would read
if [field2] = 5 then

HTH

Terry

> I'm creating an invoice report that includes a logo in the page header (the
> same for every record).  However, if a record meets certain criteria, there
> is a second logo I want to display/print next to it -- but only for the
> records that meet those criteria.  Is there a relatively simple way to do
> this?
Amy E. Baggott - 15 Sep 2005 19:36 GMT
That worked.  Thanks!
Signature

Amy E. Baggott

"I''m going crazy and I''m taking all of you with me!" -- Linda Grayson

> Amy,
>
[quoted text clipped - 21 lines]
> > records that meet those criteria.  Is there a relatively simple way to do
> > this?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.