473,386 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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(Cancel As Integer, FormatCount As Integer)
If [tbCostToMinistry_g] >= 2400001 Then
Me.Section(0).BackColor = 16053492
Else
Me.Section(0).BackColor = 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 5619
Mi***********@gov.bc.ca wrote:
>I have a report that changes background colour when a running total
field hits a certain value...

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If [tbCostToMinistry_g] >= 2400001 Then
Me.Section(0).BackColor = 16053492
Else
Me.Section(0).BackColor = 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.tbCostToMinistry_g >= 2400001 Then
Me.Section(0).BackColor = 16053492
Else
Me.Section(0).BackColor = 16777215
End If

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

On Jan 6, 7:48 am, Marshall Barton <marshbar...@wowway.comwrote:
Mike.Wolow...@gov.bc.ca wrote:
I have a report that changes background colour when a running total
field hits a certain value...
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If [tbCostToMinistry_g] >= 2400001 Then
Me.Section(0).BackColor = 16053492
Else
Me.Section(0).BackColor = 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.tbCostToMinistry_g >= 2400001 Then
Me.Section(0).BackColor = 16053492
Else
Me.Section(0).BackColor = 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
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...
7
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...
9
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;)...
2
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...
9
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...
8
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...
1
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...
2
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...
19
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,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.