Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Sunrise, Florida
    Posts
    324
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Blank Date? (2003)

    The field "DiaryDate" is on a "TabControl" in a "Form" that also holds the "Active" "CheckBox". "DiaryDate" accepts user input. I would like to leave "DiaryDate" blank whenever the user unchecks "Active". If this is possible, any help or direction is appreciated. Thanks!

  2. #2
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: Blank Date? (2003)

    In the AfterUpdate event of your Active checkbox, put this line of code to remove any entry from DiaryDate if Active is unchecked.
    If Me!Active=False then Me!DiaryDate = Null

    In the OnEnter event of DiaryDate, you need to add this code so no-one can add a date unless Active is checked.
    Me!DiaryDate.Locked = not Me!Active
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

Posting Permissions

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