Results 1 to 4 of 4
  1. #1
    brharrii's Avatar
    brharrii is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Jun 2012
    Location
    Seattle, WA
    Posts
    63

    Apply Conditional Formatting to blank controls on Form

    Access 2010.

    I just discovered that Access allows conditional formatting on forms! I'd like to apply conditional formatting to 2 controls when their values are blank / null. I'm having troubles figuring out how to do this. I've messed around with it quite a bit and am just not getting it. This is what I've tried:




    Field Value is Equal to: "", Null

    Expression is: [FieldName]="", [FieldName]=Null, [FieldName] is NULL

    Expression is: Len([FieldName])="", Len([FieldName])=Null, Len([FieldName]) Is Null

    If anyone could clue me in to what I need to do I would be most appreciative

    Thanks

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    How about

    Nz([FieldName], "") = ""
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    brharrii's Avatar
    brharrii is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Seattle, WA
    Posts
    63
    Bingo! Thanks as always pbaldy!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. how to apply Conditional Formatting in run time
    By selvakumar.arc in forum Forms
    Replies: 7
    Last Post: 07-03-2013, 12:41 PM
  2. Blank Popup form - not showing any controls
    By Williams485 in forum Forms
    Replies: 9
    Last Post: 03-06-2013, 09:20 AM
  3. Replies: 1
    Last Post: 06-22-2012, 03:33 PM
  4. Replies: 1
    Last Post: 04-26-2012, 08:31 PM
  5. Replies: 0
    Last Post: 03-14-2011, 08:38 AM

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