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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change text box to bold on the fly

Status
Not open for further replies.

btalon

Programmer
Dec 16, 2002
144
US
I'm wanting to change a text box control that is bound to a query to bold during execution if certain criteria is met. I have been trying to do this in the Detail_Format section of the report with no success. I can't find a method for the textbox object to set the font weight or set the font to bold. I am using Access 2000.
 
Nevermind, I found it. txtBox.fontbold = true. It's not listed in the methods listbox.
 
Use the format event for the Detail Section. Then use a conditional statement to test for the value and change the FontWeight as necessary.

If Me.FieldName = SomeValue Then
Me.FieldName.FontWeight = 800
Else
End If

That should do it.

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top