A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Conditional format not working correctly



 
 
Thread Tools Display Modes
  #1  
Old May 8th, 2010, 08:01 AM posted to microsoft.public.access.forms
aussiebob
external usenet poster
 
Posts: 6
Default Conditional format not working correctly

I have a form which includes several fields with conditional formats. the
format is determined by the user ticking a yes/no box included in both the
Table and the Query from which the form is created.
when i open the Form the previously saved format is displayed but the user
cannot turn off the format with the yes/no box. However if i open the
underlying query in design view and the close it the form works ok.
Any help appreciated.
  #2  
Old May 10th, 2010, 02:32 PM posted to microsoft.public.access.forms
Daryl S[_2_]
external usenet poster
 
Posts: 881
Default Conditional format not working correctly

Aussiebob -

Chances are you don't have code behind all the events you need and/or the
code is not complete.

For example, you may have code in the OnCurrent event of a form, which test
and format the form as you scroll through new records, but it would not help
if the user changed a value on a current record. If there are a lot of
events that should trigger this code, then the code should be in a form
procedure that you can call from each event that could affect the formatting.

Also, you may have code that is 'half' there, such as an if statement with a
conditional formatting but no else clause to set the formatting back to
normal.

If you want more help, post your code, and include when/how it is called.

--
Daryl S


"aussiebob" wrote:

I have a form which includes several fields with conditional formats. the
format is determined by the user ticking a yes/no box included in both the
Table and the Query from which the form is created.
when i open the Form the previously saved format is displayed but the user
cannot turn off the format with the yes/no box. However if i open the
underlying query in design view and the close it the form works ok.
Any help appreciated.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:04 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.