Results 1 to 8 of 8
  1. #1
    Srin is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jun 2015
    Posts
    59

    Question Formatting table colors on Access

    1. Can we have the cells within access table change color when their input changes as in excel? For Ex:

    If the input for a cell inside Column "Status" says "Pending" then the cell color is orange.


    If it says "Completed" then color is green?

    Is this possible on Access?

    2. Also is it possible to change the color of Column headings?

    I tried changing the color but found that the entire table changed colors with alternate rows.

  2. #2
    JeroenMioch's Avatar
    JeroenMioch is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2012
    Location
    Den Haag, Netherlands
    Posts
    368
    I dont think its possible in datasheet view.
    However, if you view your data through a form you can do practicly everything you want including conditional formatting.

  3. #3
    Srin is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jun 2015
    Posts
    59
    Hi JeroenMioch,

    Can I view the entire table in form view. And if I decide to do that, how can I do it?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Build a form and bind it to table or query. Use Conditional Formatting of textbox and combobox.
    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.

  5. #5
    Srin is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jun 2015
    Posts
    59
    Hi June7,
    Could you please explain on that. What kind of form would enable me to do this and how do I bind it to the table.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Any kind of form. Set form's RecordSource property. This is basic Access functionality.

    Perhaps you should complete a tutorial on web or in book. http://www.rogersaccesslibrary.com/
    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.

  7. #7
    JeroenMioch's Avatar
    JeroenMioch is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2012
    Location
    Den Haag, Netherlands
    Posts
    368
    A table is like an excel sheet except it holds the rows together when sorting. Thats one reason why we use Access and
    not Excel.
    A form is like a window from where you look at this table with data.
    The form is highly customisable, basicly you can do anything you wish to the data your viewing through it.
    Like June said you have to link the two together. So you tell the form wich data (table) is bound to it.

    Once you have done that you can format a control (form) to change colour when the underlaying data in the field (table) holds a specific value. For example if the value in the field is greater then 1000 the background of the control turns red. If the value is between 1001 and 2000 it turns green etc etc.
    This can be done using conditional formatting on the control, or programaticly using Visual Basic for Applications (VBA).

    To explain more then the above would take a LOT of time so like June said you better read up on the basics of Access and VBA coding.

  8. #8
    Srin is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jun 2015
    Posts
    59
    Thank you June7 and JeroenMioch. I was able to figure it out using Forms and binding the required table to the form using RecordSource property and then using Conditional Formatting.

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

Similar Threads

  1. Replies: 2
    Last Post: 03-04-2015, 10:54 PM
  2. VBA for Access chart colors
    By Tcurtis in forum Programming
    Replies: 6
    Last Post: 08-27-2014, 11:42 AM
  3. Replies: 20
    Last Post: 10-25-2013, 06:16 AM
  4. Formatting an Access table after importing from Excel
    By bigern87 in forum Import/Export Data
    Replies: 3
    Last Post: 02-13-2013, 07:08 AM
  5. Replies: 1
    Last Post: 12-30-2005, 10:23 AM

Tags for this Thread

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