Results 1 to 4 of 4

Thread: visible checkbox

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2002
    Posts
    24

    visible checkbox

    hi, (i am a newbie at VB.....)

    when i load a form, i assign a value to my textbox (named txtNRep).

    what i want is when the user changes my value, a checked checkbox appears

    i tried

    Private Sub txtNRep_Change()
    cbChgRep.Visible = True
    cbChgRep.Value = 1
    End Sub

    but, this causes the checkbox to always appear, because i am changing the value in my form_load

    is there an easy way to catch the change only after the form loads?

    thanks so much in advance,
    meg

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344
    Try this:

    'Place a checkbox on the form and set in visible value = false

    text1_change()
    if text1.text = "" then
    Check1.visible = false
    else
    check1.visible = true
    end if
    end sub
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2002
    Posts
    24
    thanks so much for your quick response!

  4. #4
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344
    Originally posted by tennis_blues
    thanks so much for your quick response!
    I hope I solved your problem.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

Posting Permissions

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



Click Here to Expand Forum to Full Width