Results 1 to 6 of 6

Thread: field disappear

  1. #1
    Join Date
    Apr 2004
    Location
    ny, ny
    Posts
    224

    Unanswered: field disappear

    I have 2 fields true/false which is a combo box and a time
    i have set the combo to a default value of false
    if it is true, the time field should be displayed and time entered by now()
    and when changed to false the time field should disappear along with its text box label .. any one know how to do this

    thank you

  2. #2
    Join Date
    Sep 2003
    Location
    MI
    Posts
    3,713

    Re: field disappear

    Originally posted by fullymooned
    I have 2 fields true/false which is a combo box and a time
    i have set the combo to a default value of false
    if it is true, the time field should be displayed and time entered by now()
    and when changed to false the time field should disappear along with its text box label .. any one know how to do this

    thank you
    .Visible

  3. #3
    Join Date
    Mar 2004
    Location
    Nashville, TN
    Posts
    557
    Hey fully is this the same one I showed you how to do? Post the code I told you to write and I will show you how to re-write it to make it where if it is false it deletes the time out of the box.

    JS
    Have you ever thought about thinking on purpose?

    Jarvis Stubblefield
    Patriot Designs
    Web/Database Development and Consulting
    The-Patriot.net by Patriot Designs

  4. #4
    Join Date
    Apr 2004
    Location
    ny, ny
    Posts
    224
    If weir2alkcleaning.Value = "Yes" Then
    weir2alktime = Time()
    Else
    weir2alktime = ""
    End If

    yeah its the same one .. but this time i wanna disappear the time if it is no and appear it when value is yes

    thanks

  5. #5
    Join Date
    Apr 2004
    Location
    South Arica
    Posts
    125
    in the after_Update event of the combo box:

    if combo="True" then or "yes", depending on your setup
    time.visible=true
    timelabel.visible=true
    time=now()
    else
    time.visible=false
    timelabel.visible=false
    end if

    set the visible properties of time and it's label to false.

  6. #6
    Join Date
    Mar 2004
    Location
    Nashville, TN
    Posts
    557
    Originally posted by fullymooned
    If weir2alkcleaning.Value = "Yes" Then
    weir2alktime = Time()
    Else
    weir2alktime = ""
    End If

    yeah its the same one .. but this time i wanna disappear the time if it is no and appear it when value is yes

    thanks
    Okay you need to add one more section to your current if statement .

    Code:
    If weir2alkcleaning.Value = "Yes" Then
        weir2alktime = Time()
    ElseIf weir2alkcleaning.Value = "No" Then
        weir2alktime = ""
    End If
    Hope that helps,
    JS
    Have you ever thought about thinking on purpose?

    Jarvis Stubblefield
    Patriot Designs
    Web/Database Development and Consulting
    The-Patriot.net by Patriot Designs

Posting Permissions

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