Page 2 of 2 FirstFirst 12
Results 16 to 29 of 29
  1. #16
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162
    Quote Originally Posted by June7 View Post
    Now try the IsNull parts without the date condition.
    (IsNull([Accounts Sent to Residents])) works and field goes red

  2. #17
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    Try both IsNull conditions together.

    Then try with all three conditions. If it still fails, got no clue what's wrong.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #18
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162
    (IsNull([Accounts Sent to Residents]) And IsNull([Section 20B Sent]))

    Works field goes red but of course now all fields are red regardless of whether deadline date has passed becuase of no sysdate

  4. #19
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    And now you need to try all three again.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #20
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162
    As soon as i put in sys date

    (Date()>IsNull([Accounts Sent to Residents]) And IsNull([Section 20B Sent]))

    all fields are red and when i enter Resident date its still red! So yeah at a lost here

    Interestingly though when i put this,

    (IsNull([Accounts Sent to Residents]) And IsNull([Section 20B Sent])<Date())

    All records Deadline Date are Red BUT this time when i enter the Residents Date it goes back to White

  6. #21
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    If you want to provide db for analysis, follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #22
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162
    Hi

    Here is a zip up folder of database

    I left 3 records in there so you can see what should be happening with the fields
    Attached Files Attached Files

  8. #23
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    Which form?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  9. #24
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162
    2014 Accounts Tracker Main Data

  10. #25
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    Okay, now which textbox(es) on that form, there are a lot.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  11. #26
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162
    Account Deadline and Sec 20B Deadline

    Section 20B Sent and Sent to Residents are the fields the above to to "look at"

  12. #27
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    You show expression using

    Date()>[Account deadline date])

    There is no field or textbox named [Account deadline date]

    There is a textbox named [Account Deadline]

    Fix the reference and condition works.

    Date()>[Account Deadline] And IsNull([Accounts Sent to Residents]) And IsNull([Section 20B Sent])
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  13. #28
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162
    THANK YOU so much just wouldnt have seen that, fresh eyes makes all the diffrence

  14. #29
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    how about supplying an example database to play around with? Isnull should work with date fields if there's nothing in them and I can't understand why it wouldn't work for you.

    This is the expression I used and it correctly highlighted the appropriate line:

    (Date()>[account_deadline_date]) And (IsNull([Accounts_sent_to_residents]) And IsNull([section_20b_sent]))

    Use the EXPRESSION IS when you create your rule.

    One other note, I don't use spaces in anything I create, leads to more programming issues than anything else so I replaced all your spaces with underscores (_) in my test.

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

Similar Threads

  1. Replies: 6
    Last Post: 05-26-2013, 09:10 PM
  2. Conditional Formatting
    By mm07nkb in forum Forms
    Replies: 1
    Last Post: 09-02-2011, 09:58 AM
  3. Conditional formatting
    By avarusbrightfyre in forum Forms
    Replies: 3
    Last Post: 07-01-2011, 11:18 AM
  4. conditional formatting right(..)
    By bbeernaert in forum Access
    Replies: 3
    Last Post: 08-25-2010, 12:33 AM
  5. Conditional Formatting
    By cevatyildiz in forum Forms
    Replies: 8
    Last Post: 04-30-2010, 12:01 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