Results 1 to 6 of 6
  1. #1
    kellydigital is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2021
    Posts
    3

    Allow Users to Change Background Colors on Individual Cells/Rows in Frontend

    We have created a shared MS Access database for about 5 users. We have split the file into tables (Backend) and forms (Frontend). The backend is on a shared drive. The users front end is on their own PCs linked to the backend.



    I would like users to have the ability to highlight a cell or a row with any color but only on their own front end.

    The background color button seems to change the background color of all the cells.

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,540
    The background color button seems to change the background color of all the cells
    Then you are setting the background property of the form rather than the background property of the control. Show us the code you are using.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    Also is your form a datasheet or continuous/single form?

  4. #4
    kellydigital is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2021
    Posts
    3
    Hi Bob - I'm not using any code yet. Just trying to figure out how to do it.

    The background color button is just the default button in Access.

  5. #5
    kellydigital is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2021
    Posts
    3
    Hi Ajax - it looks like a spreadsheet (datasheet) view

  6. #6
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    You will need to use conditional formatting - perhaps choose ‘if field has focus’ rule for highlighting individual controls (not cells which is an excel construct)

    If you want to highlight a row, you will need some code and a different conditional formatting rule - and your data will need a unique Id

    The code will depend on how you want a user to select a row (or a specific control, regardless of focus) usual basis would be a button (not available in datasheet) or perhaps a double click event on one or more controls

    Be clear about that and I’m sure some example code will be forthcoming

    You might find this link helpful
    https://www.access-programmers.co.uk/forums/threads/multi-select-form.289116/

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

Similar Threads

  1. Change control's colors
    By Chas in forum Access
    Replies: 5
    Last Post: 12-07-2020, 04:22 PM
  2. Background Colors for command buttons
    By sherrygroves in forum Access
    Replies: 3
    Last Post: 06-23-2019, 07:14 AM
  3. Replies: 5
    Last Post: 08-25-2018, 04:55 PM
  4. Replies: 15
    Last Post: 08-02-2018, 07:22 AM
  5. Multiple if statements on combobox background colors
    By themushroomking in forum Programming
    Replies: 3
    Last Post: 07-23-2016, 08:54 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