Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional Formatting on a Line 2

Status
Not open for further replies.

perrymans

IS-IT--Management
Nov 27, 2001
1,340
US
I have a line above the text box in the detail section.

I only want the line to display if there is information in the textbox for that detail.

How can this be done? Conditional Formatting only enables for the textbox, not the line.

Thanks. Sean.
 
in
Sub Detail_Format(Cancel As Integer, FormatCount As Integer)

me.linename.Visible=me.textboxname>
 
This code might not work as Null is not the same as "". Null is unknown so you can't compare it to anything.
Code:
Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
   me.linename.Visible = me.textboxname & "" > ""
End Sub

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
I used Duane's code, but they were both right.

Thanks for the solution!

Sean.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top