Results 1 to 4 of 4
  1. #1
    leanbiz is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2014
    Posts
    4

    Conditional Format Change Field Value

    We're entering in part measurements, and I have a "OutOfSpec" field setup to indicate when a part is outside its tolerance range.



    I'm trying to figure out the easiest way to set the "OutOfSpec" field when a value in another field is outside the tolerance ... is there a way to update a field when a conditional format is triggered? It seems like a waste to add VBA and do all tolerance checking again before inserting/updating the record when it's already done once with conditional format.

  2. #2
    JamesDeckert is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2015
    Location
    Salina, KS
    Posts
    262
    I guess you could check the background color (that you've changed with conditional formatting). You'd need to make sure you do the check after conditional formatting is done. Or maybe you could do the calc in OutOfSpec and conditional format on that field.

  3. #3
    leanbiz is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2014
    Posts
    4
    I'm not sure about that... I've tried checking the fields BackColor property and its always white (16777215), even when it displays Red on the screen because of conditional formatting.

  4. #4
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    ...BackColor property and its always white (16777215)...
    That's because when you check the colour it's looking at the setting in the BackColor property, which is not changed by conditional formatting.

    As far as I know, conditional formatting does not trigger an event, so I think you will have to use VBA to set the value in the "OutOfSpec" field.

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

Similar Threads

  1. Field won't let me change format
    By Tommo in forum Access
    Replies: 2
    Last Post: 09-05-2015, 09:42 PM
  2. Change Field Format using VBA
    By Swatskeb in forum Access
    Replies: 5
    Last Post: 09-22-2014, 09:36 PM
  3. Replies: 18
    Last Post: 09-30-2011, 06:41 AM
  4. Replies: 1
    Last Post: 07-20-2011, 01:24 PM
  5. Change field format
    By zhshqzyc in forum Access
    Replies: 6
    Last Post: 01-20-2011, 04:07 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