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 formatting - more format choices?



 
 
Thread Tools Display Modes
  #1  
Old August 27th, 2005, 01:10 AM
Ken Cobler
external usenet poster
 
Posts: n/a
Default conditional formatting - more format choices?

I would like to know if there are more choices for conditionally formatting a
text box, besides font style/background color. I am making a report to be
used for field input, and whereever a text box is blank, ideally I would like
to have the text box underlined, to bring it to the user's attention.

I have used the format for background color, but to have the box bordered or
underlined would be best.

Thanks.
  #2  
Old August 27th, 2005, 04:31 AM
Duane Hookom
external usenet poster
 
Posts: n/a
Default

If you know a little code, you have lots of options. For instance add a line
control at the bottom of your text box and code in the On Format event of
the detail section:

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.YourLine.Visible = IsNull(Me.txtYourField)
End Sub


--
Duane Hookom
MS Access MVP


"Ken Cobler" wrote in message
news
I would like to know if there are more choices for conditionally formatting
a
text box, besides font style/background color. I am making a report to be
used for field input, and whereever a text box is blank, ideally I would
like
to have the text box underlined, to bring it to the user's attention.

I have used the format for background color, but to have the box bordered
or
underlined would be best.

Thanks.



  #3  
Old August 29th, 2005, 06:11 PM
Ken Cobler
external usenet poster
 
Posts: n/a
Default

I'm new to coding, and it took me a few minutes to find the On Format event -
- it occurred to me that this event is found on the overall report's
Properties, not on the Line's properties. Now the line appears just as it
should. Thank you.

Here's a followup question: I will be adding lines to most all textbox
fields that are blank. What is the best way to do this for multiple lines?
Can I nest them all in the same routine, such as :

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.Line101.Visible = IsNull(Me.txt101)
Me.Line102.Visible = IsNull(Me.txt102)
Me.Line103.Visible = IsNull(Me.txt103), etc.....
End Sub

Obviously I am learning from the ground floor.

Thank you for your help.



"Duane Hookom" wrote:

If you know a little code, you have lots of options. For instance add a line
control at the bottom of your text box and code in the On Format event of
the detail section:

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.YourLine.Visible = IsNull(Me.txtYourField)
End Sub


--
Duane Hookom
MS Access MVP


"Ken Cobler" wrote in message
news
I would like to know if there are more choices for conditionally formatting
a
text box, besides font style/background color. I am making a report to be
used for field input, and whereever a text box is blank, ideally I would
like
to have the text box underlined, to bring it to the user's attention.

I have used the format for background color, but to have the box bordered
or
underlined would be best.

Thanks.




  #4  
Old August 29th, 2005, 07:48 PM
Duane Hookom
external usenet poster
 
Posts: n/a
Default

I think if you would have tried exactly what you asked, it would have
worked.

--
Duane Hookom
MS Access MVP


"Ken Cobler" wrote in message
...
I'm new to coding, and it took me a few minutes to find the On Format
event -
- it occurred to me that this event is found on the overall report's
Properties, not on the Line's properties. Now the line appears just as it
should. Thank you.

Here's a followup question: I will be adding lines to most all textbox
fields that are blank. What is the best way to do this for multiple
lines?
Can I nest them all in the same routine, such as :

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.Line101.Visible = IsNull(Me.txt101)
Me.Line102.Visible = IsNull(Me.txt102)
Me.Line103.Visible = IsNull(Me.txt103), etc.....
End Sub

Obviously I am learning from the ground floor.

Thank you for your help.



"Duane Hookom" wrote:

If you know a little code, you have lots of options. For instance add a
line
control at the bottom of your text box and code in the On Format event of
the detail section:

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.YourLine.Visible = IsNull(Me.txtYourField)
End Sub


--
Duane Hookom
MS Access MVP


"Ken Cobler" wrote in message
news
I would like to know if there are more choices for conditionally
formatting
a
text box, besides font style/background color. I am making a report to
be
used for field input, and whereever a text box is blank, ideally I
would
like
to have the text box underlined, to bring it to the user's attention.

I have used the format for background color, but to have the box
bordered
or
underlined would be best.

Thanks.






  #5  
Old August 3rd, 2007, 07:40 PM posted to microsoft.public.access.reports
Eric_G
external usenet poster
 
Posts: 34
Default conditional formatting - more format choices?

I am attempting to do something similar -- to only display the border of a
particular text box field when there is a value other than "Y". If the value
is "Y", then suppress the border (i.e. make it transparent).

Any suggestions?

"Duane Hookom" wrote:

I think if you would have tried exactly what you asked, it would have
worked.

--
Duane Hookom
MS Access MVP


"Ken Cobler" wrote in message
...
I'm new to coding, and it took me a few minutes to find the On Format
event -
- it occurred to me that this event is found on the overall report's
Properties, not on the Line's properties. Now the line appears just as it
should. Thank you.

Here's a followup question: I will be adding lines to most all textbox
fields that are blank. What is the best way to do this for multiple
lines?
Can I nest them all in the same routine, such as :

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.Line101.Visible = IsNull(Me.txt101)
Me.Line102.Visible = IsNull(Me.txt102)
Me.Line103.Visible = IsNull(Me.txt103), etc.....
End Sub

Obviously I am learning from the ground floor.

Thank you for your help.



"Duane Hookom" wrote:

If you know a little code, you have lots of options. For instance add a
line
control at the bottom of your text box and code in the On Format event of
the detail section:

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.YourLine.Visible = IsNull(Me.txtYourField)
End Sub


--
Duane Hookom
MS Access MVP


"Ken Cobler" wrote in message
news I would like to know if there are more choices for conditionally
formatting
a
text box, besides font style/background color. I am making a report to
be
used for field input, and whereever a text box is blank, ideally I
would
like
to have the text box underlined, to bring it to the user's attention.

I have used the format for background color, but to have the box
bordered
or
underlined would be best.

Thanks.






 




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
Forms and Conditional Formatting limited computer knowledge Worksheet Functions 2 April 29th, 2005 04:30 PM
Too much conditional formatting? LJpse General Discussion 1 November 8th, 2004 01:50 AM
Conditional Formatting Anomaly Rutgers_Excels General Discussion 1 November 1st, 2004 08:43 PM
Copy Conditional Formatting Bianca Worksheet Functions 2 August 9th, 2004 01:47 PM
Conditional Formatting Colin Jarvis General Discussion 4 June 17th, 2004 04:37 AM


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