473,406 Members | 2,847 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,406 software developers and data experts.

Conditional Formatting a Report w/ Alternating Colors & a Can Grow field.

My report: Reports chronologically end-to-end milestones of my project.
My objective: "Grey Out" from left-to-right to the last completed milestone(ie. [dtmLeaseSigned] Is Not Null.)
My problem: I have VBA to alternate row colors (white/blue.) I also have a [memComments] field that can grow.
My question: How do I "grey out" the Detail Section, ending at the furthest-right control that Is Not Null, considering the Detail Section grows sometimes from the [memComments] field?
Additional Info: I have multiple fields stacked in my section (Forecast Date and Actual Date of each milestone,) so I can't simply conditionally format each control, so I'm using an unbound textbox to format conditionally. Can I create such an object on the fly? Should I set it's height to equal [memComments] height? Can I create just one control, despite that I have 8 milestones that will successively get greyed-out as their [dtmMilestoneActual] date gets populated? Or would I have to create 8 separate textboxes whose width's align with the edge of each milestone box? Additionally, if there are no milestones completed, how do I set the control to transparent, since a normal BackStyle would cover up the alternating blue background on some rows?

Very much appreciated in advance!

-Greg
May 14 '10 #1
4 2439
NeoPa
32,556 Expert Mod 16PB
My first point would be Why Values in Unbound Form Controls do not Persist. I think you'll find this pertinent to your considerations.

Next, as you have already indicated clearly (oh how I wish everyone could be so specific & clear) the precise circumstances under which an item is greyed out, and the title itself indicates an awareness of Conditional Formatting, I don't see why this would not work for you. I'm pretty sure the else condition could even specify a transparent control.

Welcome to Bytes!
May 15 '10 #2
Thank you for your post, NeoPa. I fear I may be less experienced than I implied. Your link explains how unbound objects don't store any data like recordsets do.

Should I be thinking about my post in an entirely different manner?
May 17 '10 #3
NeoPa
32,556 Expert Mod 16PB
GregKrajacic: Should I be thinking about my post in an entirely different manner?
If you can give an answer to the point in my second paragraph I will be in a better position to understand what you understand, and therefore be able to answer that question. At the moment I'm lacking any real information about what you may, or may not, understand.
May 17 '10 #4
dsatino
393 256MB
I'm a little fuzzy on what you're doing, but it sounds like it in the ball park of something I do on a couple of reports, so maybe this may help.

Basically I use and unbound text box formatted to the color I want (gray in your case) and set it to the far left of the page aligned and sized(height) with whatever control it's going to block out. My controls are all named with a numeric value on the end in the succession that they are aligned on the page so if I have 10 controls they'd all be named ctl1...ctl10. I have a function that captures how far I'm going to gray out by returning a value between 1 and 10. For example we'll say it's 5. Then you set your Graybox.width=(ctl5.left +ctl5.width)

hope that makes sense
May 17 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Jouke Langhout | last post by:
Hello all! For quite some time now, I've got the following problem: Access won't close properly when a user closes the application. An ACCESS process stays active and that process can only be...
2
by: Von Bailey | last post by:
I have a form where the conditional formatting is set on some fields to bold if certain conditions are met. However, when the conditions are met some of the data that is to bold is either not...
3
by: Chuck Reed | last post by:
I am working on a sales report where I show weekly sales by category for each of the 52 weeks in the year. Each record in my table/report has the 52 weeks of sales in it. I want to highlight to top...
5
by: Andrew Chanter | last post by:
Does anyone know a way you can use conditional formatting to create a banded style view as is commonly seen on the internet. (In othe words the first record appears on a gray background, the 2nd...
0
by: GGerard | last post by:
Hello With MSAccess 2000, I have created a program with forms and applied some Conditional Formatting on some of the text box.
8
by: Typehigh | last post by:
I have many text fields with conditional formatting applied, specifically when the condition is "Field Has Focus". Without any events associated with the fields the conditional formatting works...
4
by: ApexData | last post by:
In a Continuous form, I want to use Conditional Formatting to change the background color of a date field based on a condition. 1-The color chart in the CF menu option offers limited colors. How...
1
by: DavidB | last post by:
I have a report that (among other data) lists three different date fields from one of my tables. This is a validation report in that date #1 and date #2 should be earlier than date #3. The report...
4
by: riaane | last post by:
Please help: I have Conditional Formatting on a Report Field that fills the background Red if the criteria is met. This displays correctly in Report View, however, when I "OutputTo" this report to...
5
by: Whizzo | last post by:
Hi all; Any reason why putting: Len()<Len() into the Conditional Formatting of a control isn't applying it in a report? Even when the length of is indeed shorter that the length of ? I've...
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: 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
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,...
0
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,...
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...
0
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...
0
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...

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.