472,782 Members | 1,153 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,782 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 3022
"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: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.