Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    jdashm is offline Advanced Beginner
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2016
    Posts
    58
    Thanks for the assistance. However, it seems that the Conditional Formatting option now is working.
    Why it was not working before I have no idea other than it is Microsoft Access. The logic of this logical application escapes me sometimes.

    So... bottom line I believe (correct me if I am wrong) is that the VBA code could not work in a Continuous Form layout but Conditional Formatting did.
    Thanks to everyone who responded.

  2. #17
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Correct, VBA can work in a report but not a form. Reports have events that fire for each record you can use.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #18
    Micron is online now Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    Sorry, let me try again. If I put conditional formatting on a control, using vba or the ribbon (it does not matter which), and I want the control to go red if "qty >10", then this condition applies to all the records for that field. That is, I cannot limit this to rows 7 and 10 for whatever reason but not affect every other row. If record 15 is also >10, I cannot help but make it red too. This is a characteristic of continuous forms as the poster alluded to. Perhaps I have misinterpreted the original question which is

    it seems to disable those fields in all the records instead of just the current one

    and I might be barking up the wrong tree because the first part of the post indicates that visibility is what is trying to be set. I'm not sure that visibility is something you can control with CF anyway, because I don't use CF very often.
    Usually, what people want to do is apply some condition on a control based on other characteristics within a record, but they can't understand why it affects all the controls in that field in all the records where the condition applies. So the poster is saying he wants some controls to be visible and some not, and I'm saying whatever you do to a control propagates throughout all the records. Sorry if I wasn't clear, and I really appreciate your comment about my knowledge, the level of which I do place below yours and several other contributors here. If you don't agree, I suggest you PM me if you think we might be hijacking this thread.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #19
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    I would agree with what you describe. A condition of ">10" will affect all records that meet that criteria, not just some.

    For the record, you technically can't set the visibility of a control with CF, but you can kinda fake it by setting the fore color the same as the back color. Other settings would determine how well that works.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Conditional Formatting in a Access Form
    By adillpickle in forum Forms
    Replies: 3
    Last Post: 01-26-2016, 10:55 AM
  2. Replies: 4
    Last Post: 09-25-2015, 07:28 AM
  3. Conditional Formatting in Access
    By Triland in forum Access
    Replies: 29
    Last Post: 01-18-2013, 01:00 PM
  4. Replies: 2
    Last Post: 12-22-2012, 07:49 AM
  5. Replies: 7
    Last Post: 10-01-2012, 07:59 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