473,324 Members | 1,678 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,324 software developers and data experts.

Conditional formatting in A2003

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
Nov 12 '05 #1
4 3097
"Bradley" <br*****@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?

--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)
Nov 12 '05 #2
Lyle Fairfield wrote:
"Bradley" <br*****@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?


Like? :)
--
regards,

Bradley
Nov 12 '05 #3
"Bradley" <br*****@REMOVETHIScomcen.com.au> wrote in news:408bb870$1
@nexus.comcen.com.au:
Lyle Fairfield wrote:
"Bradley" <br*****@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?


Like? :)


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)
Nov 12 '05 #4
Lyle Fairfield wrote:
"Bradley" <br*****@REMOVETHIScomcen.com.au> wrote in news:408bb870$1
@nexus.comcen.com.au:
Lyle Fairfield wrote:
"Bradley" <br*****@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?
Like? :)


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.


I understand that...
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.
I'm using the exact same database. No conversion, nothing.
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.


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
Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

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...
4
by: Bradley | last post by:
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 , if it's true then change the...
2
by: Megan | last post by:
Can you write conditional VBA code that affects only one or two records on a continuous subform? I have a form with a subform on it. The parent/ child field that links the forms is CaseID. The...
8
by: Dimitri Furman | last post by:
Given: Access 2002/2003 A subform in datasheet or continuous view, placed on a tab page (this last may or may not matter) Conditional formatting applied to some controls on the subform - format...
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...
1
by: GGerard | last post by:
Hello Is there a way to use a variable in the Conditional Formatting of a Textbox? Example : I want the background of a textbox in a continuous form to change color when the value of...
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: midlothian | last post by:
Hello, I have conditional formatting set up on a subform based on a calculated value in the underlying query. For instance, if Sales are >$1000, the query displays "Yes," otherwise it displays...
2
by: robertng90025 | last post by:
I'm having a problem with MS Access 2003 and its conditional formatting. I have textboxes on a continuous form whose left and right margins are set to 0.03 inches. Based on each textbox's...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.