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