Results 1 to 3 of 3
  1. #1
    Mgomp is offline Novice
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Dec 2010
    Posts
    8

    Progamaticly changing ForeColor in fields or lable

    Hello.

    I just can't figure out how to programaticly change the color "Text 1, Lighter 50%" to "Background 1, Darker 15%"?

    When selecting Stadard Colors, the Fore Color value in Proprty sheet changes to a value like #BFBFBF (very light grey...)

    When hoovering over the Me.lblLable.ForeColor in VBAeditor, I got the color code 8355711 - which is the orginal "Text 1, Lighter 50%"

    Where can I find a color sheme I can use, and how do I change the Fore Color programaticly

    - yes I understand there have to be a = after Me.lblLable.ForeColor, but
    what should I put there, in what format - and what color code, and where do I find a "code list"?

    Regards,

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    This what you want: http://www.endprod.com/colors/

    There are also 8 VB color constants: vbBlack, vbWhite, vbRed, vbGreen, vbBlue, vbYellow, vbMagenta, vbCyan

    You can use the numeric color code or the RGB function or the constants in expression.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Mgomp is offline Novice
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Dec 2010
    Posts
    8
    Thank You, June 7.

    This will work. It is not a quick soultion, but it will work ok for my use.

    Regards

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

Similar Threads

  1. Replies: 1
    Last Post: 08-19-2011, 02:53 PM
  2. Changing row source
    By joacro in forum Access
    Replies: 3
    Last Post: 03-06-2011, 07:35 PM
  3. Changing to SQL server
    By petko in forum Database Design
    Replies: 2
    Last Post: 02-28-2011, 10:06 AM
  4. Replies: 26
    Last Post: 02-21-2011, 12:04 PM
  5. Please Help With Changing Heading
    By angelln in forum Access
    Replies: 3
    Last Post: 08-05-2010, 09:01 AM

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