Re: Using different background colors with rows
- From: "Alison Givens" <info@xxxxxxxxxxx>
- Date: Fri, 4 Nov 2005 12:05:05 +0100
I hope you don't mean me by idiot :-)
I tried this in the group footer, but when I check the code for errors, it
says 'a field is required here'.
The first 'colour_on' is selected in the second line of the formula, when
the error appears in the screen.
Am I missing something?
Alison
"Iain" <iains@xxxxxxxxxxxx> wrote in message
news:436b2fc1$0$82633$ed2619ec@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Okay, idiot question time :-.
>
> Do you wish the yellow,white switch to include the group lines as well as
> the detail ones?
>
> If so, in both the group and detail background formula do this.
>
> 1. Switch them to Basic Syntax
> 2. Replace the code with the following.
>
> shared colour_on as Boolean
> if(isnull(colour_on) or colour_on = false)then
> formula=crYellow
> colour_on=true
> else
> formula=crWhite
> colour_on=false
> end if
>
>
> If the colour switch should be different for detail and group
> (white/yellow for detail, green/blue for group) then do the same, but
> change the name of the switch variable in the group section.
>
> regards,
>
> Iain
>
> "Alison Givens" <info@xxxxxxxxxxx> wrote in message
> news:u%23xd%23sF4FHA.1420@xxxxxxxxxxxxxxxxxxxxxxx
>>I am not suppressing anything in the details section. I have only selected
>>the 'keep together'.
>>
>> Can you elaborate a bit on your solution for the group?
>> I am kind of new in programming.
>>
>> "Iain" <iains@xxxxxxxxxxxx> wrote in message
>> news:436887bb$0$82662$ed2619ec@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>> Are you suppressing the details section at all (rather than using record
>>> selection formula)? The suppressed ones will 'count' towards the
>>> formula.
>>>
>>> As for the group one, The only thing I can suggest is to use shared
>>> variables to count or switch on/off the colours.
>>>
>>> Regards,
>>>
>>> Iain
>>>
>>>
>>> "Alison Givens" <info@xxxxxxxxxxx> wrote in message
>>> news:uCx6ZU43FHA.4076@xxxxxxxxxxxxxxxxxxxxxxx
>>>> Now I get a real strange effect.
>>>> In the details section:
>>>> Sometimes, I get the right solotion, row white, row yellow etc.
>>>> But, with some rows I get two yellow rows after eachother and a few
>>>> corret
>>>> ones and then a few white ones.
>>>>
>>>> In the group footer#1 I use the same code:
>>>> Only the first row has a yellow color.
>>>>
>>>> Alison.
>>>>
>>>>
>>>>
>>>> "Briscobar" <youcant@xxxxxxxxxxxxxx> wrote in message
>>>> news:uyOCfaw3FHA.1148@xxxxxxxxxxxxxxxxxxxxxxx
>>>>> Alison Givens <info@xxxxxxxxxxx> rambled:
>>>>>>
>>>>>> I made the formula in Basic Syntax and is like this.
>>>>>> I only want two colours used.
>>>>>>
>>>>>> select case Recordnumber mod 2
>>>>>> case 0
>>>>>> crWhite
>>>>>> case 1
>>>>>> crYellow
>>>>>> end select
>>>>>>
>>>>>> When I check the syntax of the formula, I get this message:
>>>>>> "The special variable 'Formula' must be assigned a value within the
>>>>>> formula"
>>>>>>
>>>>>> What is wrong here?
>>>>>
>>>>> Your Crystal Syntax is wrong here. Try this:
>>>>>
>>>>> select Recordnumber mod 2
>>>>> case 0: crWhite
>>>>> case 1: crYellow
>>>>> default: crWhite //this line is optional
>>>>>
>>>>>
>>>>> --
>>>>> KB
>>>>>
>>>>> MCNGP #26
>>>>> If you don't hightail it over to www.mcngp.com, your job will be
>>>>> outsourced.
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
.
- Follow-Ups:
- References:
- Re: Using different background colors with rows
- From: Alison Givens
- Re: Using different background colors with rows
- From: Briscobar
- Re: Using different background colors with rows
- From: Alison Givens
- Re: Using different background colors with rows
- From: Iain
- Re: Using different background colors with rows
- From: Alison Givens
- Re: Using different background colors with rows
- From: Iain
- Re: Using different background colors with rows
- Prev by Date: Re: Hide values in CR
- Next by Date: Export to PDF problem !!!
- Previous by thread: Re: Using different background colors with rows
- Next by thread: Re: Using different background colors with rows
- Index(es):
Relevant Pages
|