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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Conditional Format in a Report



 
 
Thread Tools Display Modes
  #1  
Old December 2nd, 2005, 02:54 PM
masterkeys masterkeys is offline
Member
 
First recorded activity by OfficeFrustration: Nov 2005
Posts: 13
Question Conditional Format in a Report

My Report currently has a selection of text boxes, that display the selected option letter, from a list, that's a drop down. What I want to do, is to colour the text box with a RED background if the option is null, and contain a space. Otherwise I need the background white, with the Option letter showing in black, but not highlighted.

I also have a memo box at the end, and wish this to be red, if any of the options, (there are 10 in total) in named boxes called option_a - option_j, are the letter C, and the memo is empty. The option box with the C in also needs to be a red background, with white text, but only if the memo box is empty.


thanks in advance for any help
__________________
Da mihi sis bubulae frustrum assae, solana tuberosa in modo gallico fricta, ac quassum lactatum coagulatum crassum

Give me a hamburger, french fries, and a thick shake
  #2  
Old December 5th, 2005, 04:39 AM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Conditional Format in a Report

masterkeys wrote:
My Report currently has a selection of text boxes, that display the
selected option letter, from a list, that's a drop down. What I want
to do, is to colour the text box with a RED background if the option is
null, and contain a space. Otherwise I need the background white, with
the Option letter showing in black, but not highlighted.

I also have a memo box at the end, and wish this to be red, if any of
the options, (there are 10 in total) in named boxes called option_a -
option_j, are the letter C, and the memo is empty. The option box with
the C in also needs to be a red background, with white text, but only if
the memo box is empty.



Well, this is going to be tedious ;-)

I think your question is not stated rigorously, but maybe
this is close to what you need to do.

Select the option_a text box. Then use the Format -
Conditional Formatting menu item to set the Expression Is
option to:

[option_a] Is Null Or [option_a] Like "* *" Or ([txtmemo]
Is NuLL And [option_a] = "C")

and select the desired back color.

Repeat for the other nine text boxes.

To make the memo text box red if it's Null and any of the
options equals C, set the Expression Is to:

[txtmemo] Is NuLL And ([option_a] = "C" Or [option_b] = "C"
Or [option_c] = "C" Or . . . )

--
Marsh
MVP [MS Access]
 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why report in .snp format is not viewable Ally General Discussion 3 August 17th, 2005 08:45 PM
To Sharkbyte and all: Calculate a total values in group level Ally General Discussion 6 June 13th, 2005 08:16 PM
Help!! I'm running around in circles! CathyA New Users 19 December 12th, 2004 07:50 PM
Copying a conditional format Meaux Worksheet Functions 2 November 29th, 2004 10:19 AM
Conditional Formating in Report Header Haas Setting Up & Running Reports 1 July 21st, 2004 10:50 PM


All times are GMT +1. The time now is 06:02 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.