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

Change Colour of Textbox content on data 1

Status
Not open for further replies.

696796

Programmer
Aug 3, 2004
218
GB
Morning all,

I have inherited a database and need to create a report.

I want for the data in a textbox(Coin Mech No) to display in red if a condition is met.

The condition is if the data contains an "R" anywhere in the string.

I have tried
Code:
If Me.Coin Mech No islike "*R*" Then
    Me.Coin Mech No.Forecolor = vbred
End If

I can't see an easy way to format these textboxes. I am using Access 97. Also, the naming convention is poor, so are the spaces in the name going to affect anything or is it just bad practice?

I have searched other posts but cannot find what i need.

Thanks for your help,

Alex

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top