Connecting Tech Pros Worldwide Forums | Help | Site Map

Conditional formatting in A2003

Bradley
Guest
 
Posts: n/a
#1: Nov 12 '05
I have an A2000 database in which I have a continuous form with a tick
box. There is also a text box with a conditional format that is based on
the expression [MyTickBox], if it's true then change the background
colour.

In A2000 it works great, but in A2003 the background doesn't always
change and when it does it only changes when the record looses the
focus.

Any way around this? Is it a bug? Or have they "improved" it?
--
regards,

Bradley



Lyle Fairfield
Guest
 
Posts: n/a
#2: Nov 12 '05

re: Conditional formatting in A2003


"Bradley" <bradley@REMOVETHIScomcen.com.au> wrote in news:408ba540$1
@nexus.comcen.com.au:
[color=blue]
> I have an A2000 database in which I have a continuous form with a tick
> box. There is also a text box with a conditional format that is based on
> the expression [MyTickBox], if it's true then change the background
> colour.
>
> In A2000 it works great, but in A2003 the background doesn't always
> change and when it does it only changes when the record looses the
> focus.
>
> Any way around this? Is it a bug? Or have they "improved" it?[/color]

Could there be other reasons?

--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)
Bradley
Guest
 
Posts: n/a
#3: Nov 12 '05

re: Conditional formatting in A2003


Lyle Fairfield wrote:[color=blue]
> "Bradley" <bradley@REMOVETHIScomcen.com.au> wrote in news:408ba540$1
> @nexus.comcen.com.au:
>[color=green]
>> I have an A2000 database in which I have a continuous form with a
>> tick box. There is also a text box with a conditional format that is
>> based on the expression [MyTickBox], if it's true then change the
>> background colour.
>>
>> In A2000 it works great, but in A2003 the background doesn't always
>> change and when it does it only changes when the record looses the
>> focus.
>>
>> Any way around this? Is it a bug? Or have they "improved" it?[/color]
>
> Could there be other reasons?[/color]

Like? :)
--
regards,

Bradley


Lyle Fairfield
Guest
 
Posts: n/a
#4: Nov 12 '05

re: Conditional formatting in A2003


"Bradley" <bradley@REMOVETHIScomcen.com.au> wrote in news:408bb870$1
@nexus.comcen.com.au:
[color=blue]
> Lyle Fairfield wrote:[color=green]
>> "Bradley" <bradley@REMOVETHIScomcen.com.au> wrote in news:408ba540$1
>> @nexus.comcen.com.au:
>>[color=darkred]
>>> I have an A2000 database in which I have a continuous form with a
>>> tick box. There is also a text box with a conditional format that is
>>> based on the expression [MyTickBox], if it's true then change the
>>> background colour.
>>>
>>> In A2000 it works great, but in A2003 the background doesn't always
>>> change and when it does it only changes when the record looses the
>>> focus.
>>>
>>> Any way around this? Is it a bug? Or have they "improved" it?[/color]
>>
>> Could there be other reasons?[/color]
>
> Like? :)[/color]

Well, suppose there is not a bug, nor an improvement. About 99.9999999999%
of all bugs suggested here are actually user error. Maybe yours isn't.

So, now what?

We are guessing.

And we are trying to interpret what you have said. My interpretation is
that you want the background color to change when you click MyTickBox. Does
Conditional Formatting activate when a control event occurs? My guess is,
"No". But this happened, (another interpretation of what you describe), in
Ac2K, and it does not happen in Ac2K3. So why might this change hace
occurred. Certainly one reason could be a bug or improvement in AC2K3.
Another could be that however the conversion from Ac2K to Ac2K3 was done,
the code behind the form was left behind. Not that? Then my next guess is
that the name of MyTickBox was changed.

In the end, I would try to write some on click code for MyTickBox which
would apply the conditional formatting to the text box. I'm not an expert
on conditional formatting for sure, but another guess is that Me.Refresh
should apply that Conditional Formatting.



--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)
Bradley
Guest
 
Posts: n/a
#5: Nov 12 '05

re: Conditional formatting in A2003


Lyle Fairfield wrote:[color=blue]
> "Bradley" <bradley@REMOVETHIScomcen.com.au> wrote in news:408bb870$1
> @nexus.comcen.com.au:
>[color=green]
>> Lyle Fairfield wrote:[color=darkred]
>>> "Bradley" <bradley@REMOVETHIScomcen.com.au> wrote in news:408ba540$1
>>> @nexus.comcen.com.au:
>>>
>>>> I have an A2000 database in which I have a continuous form with a
>>>> tick box. There is also a text box with a conditional format that
>>>> is based on the expression [MyTickBox], if it's true then change
>>>> the background colour.
>>>>
>>>> In A2000 it works great, but in A2003 the background doesn't always
>>>> change and when it does it only changes when the record looses the
>>>> focus.
>>>>
>>>> Any way around this? Is it a bug? Or have they "improved" it?
>>>
>>> Could there be other reasons?[/color]
>>
>> Like? :)[/color]
>
> Well, suppose there is not a bug, nor an improvement. About
> 99.9999999999% of all bugs suggested here are actually user error.
> Maybe yours isn't.[/color]

I understand that...
[color=blue]
> So, now what?
>
> We are guessing.
>
> And we are trying to interpret what you have said. My interpretation
> is that you want the background color to change when you click
> MyTickBox. Does Conditional Formatting activate when a control event
> occurs? My guess is, "No". But this happened, (another interpretation
> of what you describe), in Ac2K, and it does not happen in Ac2K3. So
> why might this change hace occurred. Certainly one reason could be a
> bug or improvement in AC2K3. Another could be that however the
> conversion from Ac2K to Ac2K3 was done, the code behind the form was
> left behind. Not that? Then my next guess is that the name of
> MyTickBox was changed.[/color]

I'm using the exact same database. No conversion, nothing.
[color=blue]
> In the end, I would try to write some on click code for MyTickBox
> which would apply the conditional formatting to the text box. I'm not
> an expert on conditional formatting for sure, but another guess is
> that Me.Refresh should apply that Conditional Formatting.[/color]

I also have some code on the text box "onclick" event that sets the tick
box.

Interestingly, if I click on the tick box the conditional formatting
does not trigger at all it seams, even when the record loses focus.
But, if I click on the text box the conditional formatting seems to
occur _usually_ after the record looses the focus (I've tried pressing
requery, refresh manually and that doesn't do anything).
If I go out of the form and come back in the conditional formatting on
existing records is correct but changing them has the same problem.
--
regards,

Bradley


Closed Thread