If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > Multi-Record Report - Toggle visibility of image based on checkbox value

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-31-12, 23:41
sydcomebak sydcomebak is offline
Registered User
 
Join Date: Jan 2012
Posts: 2
Multi-Record Report - Toggle visibility of image based on checkbox value

I'm building a database for a real-estate project and for each home/lot I am displaying a whole bunch of info. I have a transparent background image - Image78, and I'm laying it over the house pic.

What I want is for each record, that the Image78.visible=Was_Sold.value

I set up:

Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
End Sub
Private Sub Report_Current()
Image78.Visible = Was_Sold
End Sub
This overlays the Image78 over all or no records depending on whether I click on a sold or unsold lot.

Why is this affecting all or no records? I've been poking at this for hours now. Thanks to any responses in advance!
Reply With Quote
  #2 (permalink)  
Old 02-01-12, 01:51
oMADMANo oMADMANo is offline
Registered User
 
Join Date: Jan 2012
Posts: 16
I am having similar problems applying code to the current record. Keep an eye on my post how to run code in Current record ? and u might get an answer there.
Reply With Quote
  #3 (permalink)  
Old 02-01-12, 04:47
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
the image control has various properties
what is was_sold?
is it boolean
what happens if you step through the code after stettign a break point?

my expectation is that the code should be in the reports on format detail event
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On