Results 1 to 5 of 5
  1. #1
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Conditional Formatting (A2k)

    I'm using conditional Formatting on a field which contains "COMP" which is quite easy to set up.

    I now need the operator to add additional info as in "COMP 28.11" which I thought could be setup with "Left("COMP",4)" but doesn't work.
    I've attached a PNG showing what I'm trying to achieve.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Conditional Formatting (A2k)

    Hi Dave,

    Select "Expression Is" from the first dropdown list, and enter the following expression in the box next to it:
    <code>
    =(Left([FieldName],4)="COMP")
    </code>
    where FieldName is the name of the field you're applying conditional formatting to.

  3. #3
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Conditional Formatting (A2k)

    Thankyou Hans, very useful.

    If a user enterred 28.11 COMP instead of COMP 28.11, would using the Instr$ function be better and how do I set this up in Conditional Formatting ?

    Thanks Again

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Conditional Formatting (A2k)

    Hi Dave,

    You can enter the following as expression:
    <code>
    [FieldName] Like "*COMP*"
    </code>
    again with the correct field name substituted.

  5. #5
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Conditional Formatting (A2k)

    Hans

    Perfect, thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •