Share via

Is it possible to change the color of some records in a table in MS Access based on specific conditions?

Anonymous
2014-04-29T12:46:58+00:00

I have a form which has an update table button. After entering values in a textbox and clicking on the update table button, the table's field is updated with the entered data. Will it be possible to change the color of the record based on the value in the field? 

eg. If the value entered is:

     A the color of the record should be green

     B -- Red

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

14 answers

Sort by: Most helpful
  1. Anonymous
    2014-04-30T21:56:07+00:00

    Users should never see, much less care about how a table's datasheet looks.  Users, including yourself, should ALWAYS use a form to view/edit data (or a report if you need to print or present a more complex layout than can easily be done in a form.  In other words, tables and queries are NOT a user interface mechanism and consequently what few formatting features do have are still too many.

    If you create a simple continuous or datasheet form based on the table, then you can do what you want using the techniques I posted before.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2014-04-29T20:20:43+00:00

    Easy or not, that's how it's done in an Access continuous form.  Don't forget that Access is in no way a  spreadsheet on steroids.  It has to deal with many, many more things than any spreadsheet ever had to be concerned with.  And Datasheet forms are useful in some situations, but are very limited compared to what can be done with a continuous form.

    If you insist on using a datasheet form, then the best you can do (just might be sufficient for your needs) is to use Conditional Formatting on every text box with the same Expression Is: settings.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2014-04-29T19:47:01+00:00

    This is something we can do easily in excel. Trying to get this as the result on clicking update button. IF the Status is C the record in the table should get a red color.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2014-04-29T13:19:28+00:00

    Hi,

    no in the table , yes on a continuos form or on a report whit conditional formatting (right mouse button on a form's control).

    Bye Mimmo

    Was this answer helpful?

    0 comments No comments
  5. Tom van Stiphout 40,201 Reputation points MVP Volunteer Moderator
    2014-04-29T13:18:36+00:00

    Hard to say without more information. Generally we would use Conditional Formatting but in your case there may not be a suitable expression to use.

    Was this answer helpful?

    0 comments No comments