Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Jun 2005
    Location
    Atlanta, Georgia, USA
    Posts
    208
    Thanks
    0
    Thanked 0 Times in 0 Posts

    inactivate text box (2003)

    Hi ,

    I have 2 text boxes and the first is called add info which is yes or no and the other is a called add info date which is a date. I would like to say if add info is no then inactivate the add info Date box. I have tried with an if statement and I received errors.

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

    Re: inactivate text box (2003)

    You can put code in the After Update event of the first text box (BTW why not use a check box?)
    <code>
    Private Sub Add_info_AfterUpdate
    Me.[Add info date].Enabled = (Me.[Add info] = "Yes")
    End Sub</code>

Posting Permissions

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