Re: Color subreport fields need big help!

Tech-Archive recommends: Fix windows errors by optimizing your registry



Guys - I think I might have solved your problem. I too was having trouble
getting the code to work, until I realised the Back Style for the field was
set to 'Transparent'. as soon as I reset it to 'Normal' it worked !!

Hope I've helped you, because your thread certainly helped me in the first
place.

"Ben" wrote:

Marshall,
It seems as if the Me.PreviousStatus.BackColor is not a valid call in the
report on Format event. Is there a way I can code the conditional
formatting? I don't want to use the normal conditional formatting because i
have multiple conditions.

Just a thought. This little problem is being a pain.

Ben

"Marshall Barton" wrote:

Ben wrote:

There is a form called Builds. The fields PreviousStatus and CurrentStatus
are combo boxes that have a list of values Blue, Green, Yellow, Red, Purple,
Gold, and N/A. When the user clicks on the drop down menu and selects one of
those values, the background of the combo box changes to that color. If N/A
is selected then it's white. Those values are stored in the table.

There is a main report called rptWAR that has a subreport based on the data
from the Builds table. I can get the data to publish on the subreport, but
the back color of each of these values does not show the color.

When I look at the design view of the subreport I see the combo boxes on the
report. I clicked on the Details section and went to Event, On Format. I
entered the code you provided me the Select Case statement and I don't see
any colors. I wish I could email you the database because it'll be easier
that way. My email is ronen.ben@xxxxxxxxx if you need that.


The form is irrelevant at this point. It also sound like
the main report has no involvement so try opening the
subreport by itself. We only care about the subreport's
report's record source table/query and what's in the
subreport.

You're using a combo box on a report??? That would be very
odd if true. I'm beginning to think that your table field
is a Lookup Field (displayed as a drop list), which will
totally obscure what is really going on. If so, change it
to a text box and post back with what happened. I suspect
that the value in the field could be something other than
"Blue", "Red" or ...

--
Marsh
MVP [MS Access]

.



Relevant Pages

  • Re: referencing subreport items
    ... report should work okay. ... use the Conditional Formatting option in the subreport. ... it runs to format the subreport. ...
    (microsoft.public.access.reports)
  • Re: Color subreport fields need big help!
    ... There is a main report called rptWAR that has a subreport based on the data ... When I look at the design view of the subreport I see the combo boxes on the ... Just an example of just the "Blue" selection. ...
    (microsoft.public.access.reports)
  • RE: boxes with rounded corners
    ... I'm not sure how this will render if the subreport expands to the ... If all of the boxes appear in the same place on every page, ... On the main report:- ... "Duane Hookom" wrote: ...
    (microsoft.public.access.reports)
  • Re: Allen Brownes Function not available
    ... You are absolutely correct with your ... form that I use to enter report parameters. ... I have two text boxes (date format) that are ...
    (microsoft.public.access.formscoding)
  • RE: Can not link with the unbound form
    ... The subreport should not have any text boxes with Control Sources like ... You were suppose to substitute your actual form and control name which would ... Try a main report query of my suggestion earlier. ... You should have the 5 text boxes that would display the 5 years across the ...
    (microsoft.public.access.reports)