Results 1 to 4 of 4
  1. #1
    Cecil is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2011
    Location
    Dallas, Texas
    Posts
    11

    How to make string background Yellow?


    I can make a string show up in the FoxPro editor as Yellow if it's between Quotes (Double or Single) and even with the square brackets. How do you do this in Access?

  2. #2
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    I don't think you can. I assume you are talking about the VBA editor, and although there are several types of text you can set colour for, string identification is not one of them.

  3. #3
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    If we're talking about a form or report control, you might have limited success with conditional formatting. You'd need an expression that tests for the first character being the double quote or bracket. Since it could get hairy trying to tie in the last character as well (using expressions) I wondered if you could use a function for conditional formatting. A quick search and it looks to be possible http://www.pcreview.co.uk/threads/ca...ssion.3431939/
    I'm waiting for the day when I wonder about something only to find I'm the first...
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    Cecil is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2011
    Location
    Dallas, Texas
    Posts
    11
    Hi John,

    Yes, I was referring to the VB Editor. i think you are right that you cannot do this in MS Access' VBA Editor. I have seen no way to do it. It makes me wonder why Microsoft won't add something like this to their editor.

    Quote Originally Posted by John_G View Post
    I don't think you can. I assume you are talking about the VBA editor, and although there are several types of text you can set colour for, string identification is not one of them.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 6
    Last Post: 05-29-2015, 10:21 AM
  2. Make background image scroll with formq
    By LadyMarmalade in forum Forms
    Replies: 3
    Last Post: 10-02-2014, 03:01 AM
  3. Make subform control reference with a string
    By dcdimon in forum Programming
    Replies: 2
    Last Post: 04-01-2014, 02:24 PM
  4. Replies: 3
    Last Post: 01-01-2014, 11:21 PM
  5. Replies: 9
    Last Post: 08-27-2011, 11:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums