473,626 Members | 3,031 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

setting subreport background colour to transparent?

I have a report that changes background colour when a running total
field hits a certain value...

Private Sub Detail_Format(C ancel As Integer, FormatCount As Integer)
If [tbCostToMinistr y_g] >= 2400001 Then
Me.Section(0).B ackColor = 16053492
Else
Me.Section(0).B ackColor = 16777215
End If
End Sub

I'm looking for a way to get a subreports background colour to change
along with the main report. There appears to be no 'transparent' option
on the sub report... and all the code I've tried doesn't seem to work
(I'm not very good with VB).

Can anyone help?
Thanks.

Jan 4 '07 #1
2 5654
Mi***********@g ov.bc.ca wrote:
>I have a report that changes background colour when a running total
field hits a certain value...

Private Sub Detail_Format(C ancel As Integer, FormatCount As Integer)
If [tbCostToMinistr y_g] >= 2400001 Then
Me.Section(0).B ackColor = 16053492
Else
Me.Section(0).B ackColor = 16777215
End If
End Sub

I'm looking for a way to get a subreports background colour to change
along with the main report. There appears to be no 'transparent' option
on the sub report... and all the code I've tried doesn't seem to work
(I'm not very good with VB).

It needs to be done in the subreport:

If Me.Parent.tbCos tToMinistry_g >= 2400001 Then
Me.Section(0).B ackColor = 16053492
Else
Me.Section(0).B ackColor = 16777215
End If

--
Marsh
Jan 6 '07 #2
Thanks. That worked.

On Jan 6, 7:48 am, Marshall Barton <marshbar...@wo wway.comwrote:
Mike.Wolow...@g ov.bc.ca wrote:
I have a report that changes background colour when a running total
field hits a certain value...
Private Sub Detail_Format(C ancel As Integer, FormatCount As Integer)
If [tbCostToMinistr y_g] >= 2400001 Then
Me.Section(0).B ackColor = 16053492
Else
Me.Section(0).B ackColor = 16777215
End If
End Sub
I'm looking for a way to get a subreports background colour to change
along with the main report. There appears to be no 'transparent' option
on the sub report... and all the code I've tried doesn't seem to work
(I'm not very good with VB).It needs to be done in the subreport:

If Me.Parent.tbCos tToMinistry_g >= 2400001 Then
Me.Section(0).B ackColor = 16053492
Else
Me.Section(0).B ackColor = 16777215
End If

--
Marsh
Jan 8 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2475
by: Dj Frenzy | last post by:
Hi, I know how to use javascript to change a background image to another background image, and how to change a background colour to another background colour. Is there a way to change an image to a backgound colour? I have a table with a background that has a picture. When the user hovers over the picture I want the background to change to the background colour of the rest of the page, as if to make the picture disappear.
7
27529
by: Thomas Wieser | last post by:
Hi, my problem: I have some tables with transparent backgrounds, which are changed in colours within a JavaScript DOM function to have a roll-over effect. Now, i can't get them back transparent when leaving the mouse out of the rollover-box - background-color: none; seems not to work. Isn't it possible to do this with CSS?
9
2107
by: Rhino | last post by:
I've been updating some CSS today and got one odd error from the validator at http://jigsaw.w3.org/css-validator/. Every time I had 'background: transparent;' (or background-color: transparent;) associated with a selector, it gave me this error message: Line : 30 (Level : 1) You have no background-color with your color : #navlist li a Here's the CSS fragment that it doesn't like:
2
1797
by: Haines Brown | last post by:
I have situations in which I define the color attribute for an element that is displayed against a background-image. For example, an incipit: #intro:first-letter { margin: -0.05em 0.2em -0.2em 0.1em; float: left; color: #CC0000; background-image: url(bin/bk.png); font-weight: bolder; font-size: 220%;
9
4110
by: JamesF1982 | last post by:
Hey everyone, My question is related to HTML, Javascript, CSS and ASP.NET but i think it belongs here! Upon an event i am trying to add a semi-transparent colour across the page so the background is obscurred but i also set a div with a known ID to exist above this. My current method has been to on the fly create a div which gets the screen height/width with javascript and then sets the image. However, my div is created but does not...
8
10160
by: Brian Ward | last post by:
I am looking for a simple way to set the image transparency in a PictureBox. I have a moving PictureBox containing a graphic image .. moving by incrementing its Left property. The background however shows white as the PictureBox moves but I want it to be transparent. The PictureBox BackColor is set to Transparent .. but no affect. I have used PhotoShop to make the image background transparent .. again no affect. If I make the image a...
1
4024
by: deshg | last post by:
Hey everyone how are you all doing? I am trying to use the imagerotate GD function to place an image on top of another image at an angle. Obviously when it rotates an image it creates a rectangular image big enough to fit the angled image inside with the background colour of this defined in the third arg of imagerotate. The problem i'm having is i want to make this background colour transparent so when i copy it on top of my existing big...
2
7313
by: kronecker | last post by:
I want to set the custom colour &H0000BDBF& which I got from a colour picker program. I need to set this as the background colour to a Label. I tried Label1.backgroundcolor = etc but it is not expecting an integer. K.
19
3978
by: david.karr | last post by:
If in my CSS I set the "background-color" property on the "body" element, it only covers the background of the elements defined in the body, up to the current width and height of the page. However, if the current component set has a resulting small height, this leaves most of the page with the original background color (white). However, if I set the property on the "html" element instead, it does color the entire visible page, beyond the...
0
8262
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8196
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8701
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8364
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7192
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6122
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2623
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1507
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.