Can VBA code change the color of specific text on a sub data sheet that displays in a form? Something like conditional formatting can, but using VBA code.
Maybe. Depends on exactly what you mean. If it is a continuous form then vba will change the color of every row. If you mean specific text within other text strings this can be done using rich text tags, but the coding is a little difficult to do this.
Not familiar with rich text tags...is this available with Access2003? Anyway, Access can't find the subform error message for Forms![tablet subform].[Price].ForeColor = 255 where [tablet subform] is the name of the subform. Thanks
Rich Text is only available in 2007 or later. PWise's solution will change the color of every row if it is a continuous Subdatasheet. That may or may not be what you are looking for. Again, what do you mean by specific text: specific row, specific text within a string, specific control in single form view, other?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.