Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2015
    Posts
    1

    Displaying an RGB color in a Datasheet view based on the RBG value in the Column

    We are using a data sheet view to display the content of a table of colors, we would like one of the columns to display a colour chip of the RGB value it contains,



    example

    Color Name RGB Value Color Chip
    White 255,255,255 Click image for larger version. 

Name:	RGB.jpg 
Views:	11 
Size:	76.2 KB 
ID:	22074

    any trick would be appreciated

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    use a form , not a datasheet.

  3. #3
    ThornofSouls's Avatar
    ThornofSouls is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Aug 2015
    Location
    Sweden, Gothenburg
    Posts
    42
    I don't think you can change the color of a field in data sheet. However a form would be better, as ranman256 mentioned.

    If you use a form instead you can always change the color of a field, font or object quite easily with a few rows code.

    Code:
    Me.Object_Name.BackColor = RGB(255, 255, 255)
    Me.Object_Name.ForeColor = RGB(0, 0, 0)
    //Thorn

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    If it must be in datasheet view, you can use the intrinsic 'Conditional Formatting' tool that is found under the Format tab of the Ribbon (while in design view of your form).

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

Similar Threads

  1. Replies: 3
    Last Post: 08-18-2013, 09:14 PM
  2. Replies: 6
    Last Post: 11-21-2012, 05:10 PM
  3. Grid Column Order in Datasheet view
    By apotter in forum Forms
    Replies: 3
    Last Post: 03-16-2012, 12:46 PM
  4. Replies: 1
    Last Post: 02-03-2012, 03:51 PM
  5. Replies: 4
    Last Post: 12-25-2011, 06:31 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