Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2016
    Posts
    17

    Unanswered: Highlighting the background of textboxes of a particular word

    Is there a way to highlight the background of textboxes of a particular word on a form? I want to highlight the background of every textbox that contains the word "Alabama."

    Click image for larger version. 

Name:	Form View.jpg 
Views:	1 
Size:	223.6 KB 
ID:	17158

    Click image for larger version. 

Name:	Design View.jpg 
Views:	1 
Size:	132.5 KB 
ID:	17159

  2. #2
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    495
    Provided Answers: 24
    If instr(txtBox1,"Alabsma")>0 then
    TxtBox1.backcolor = vbYellow
    Else
    TxtBox1.backcolor = vbWhite
    End if

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •