Ask a Question related to Microsoft Access, Design and Development.

  1. #1

    Default Tick Box problem

    I have a series of tickbox controls on a form. When the user clicks on them
    a form is opened, I used the onclick event to do this. However if the user
    clicks the tickbox in error the form will open and then if they unlick it if
    they have clicked in error the form opens again. Is there anyway that I can
    stop the form opening on unclick?

    --
    Tony Williams


    Tony Williams Guest

  2. Similar Questions and Discussions

    1. Flex: How do I make tick marks on a chart alwaysvisible?
      How can I make tick marks (the little circles you hover over to get a tooltip/dataTip) always visible in my chart? I'd like to have them visible so...
    2. Styling CheckBox background and tick-color
      I have a question on how checkbox tick-color and background colors can be changed. Below is a simple example that I put together using...
    3. tick marks on category axis
      Hello, I'm working on a book with lots of graphs and sometimes, or most of the times, there is an annoying thing about it. When I have too much...
    4. #24943 [Fbk->NoF]: static variables in tick handler persist across multiple invocations
      ID: 24943 Updated by: sniper@php.net Reported By: php at ideacode dot com -Status: Feedback +Status: ...
    5. Tick box default
      Does anyone know how I can set the Windows XP logon screen to default to having the "connect using dial-up connection..." box ticked??? Or to...
  3. #2

    Default Tick Box problem

    >-----Original Message-----
    >I have a series of tickbox controls on a form. When the
    user clicks on them
    >a form is opened, I used the onclick event to do this.
    However if the user
    >clicks the tickbox in error the form will open and then
    if they unlick it if
    >they have clicked in error the form opens again. Is there
    anyway that I can
    >stop the form opening on unclick?
    >
    >--
    >Tony Williams
    >
    >
    >.
    >set a procedure to run from the tickbox's On Click event,
    as
    Private Sub TickBox_Click()
    If Me!TickBox Then
    DoCmd.OpenForm "FormName"
    End If
    End Sub

    i didn't test above, so...if On Click doesn't work, try
    using the After Update event.

    or you could nip the problem in the bud by automatically
    unticking the box when the form opens, as
    Private Sub TickBox_Click()
    If Me!TickBox Then
    DoCmd.OpenForm "FormName"
    Me!TickBox = False
    End If
    End Sub
    again, try the After Update event if On Click doesn't work.
    tina Guest

  4. #3

    Default Re: Tick Box problem

    Thanks Tina but the form still opens on the unclick of the tick box. I want
    to stop the form opening if the user unchecks the tickbox
    Thanks
    Tony
    "tina" <californiadreamin7@arrowfm.com> wrote in message
    news:06c501c3528e$883f0150$a601280a@phx.gbl...
    >
    > >-----Original Message-----
    > >I have a series of tickbox controls on a form. When the
    > user clicks on them
    > >a form is opened, I used the onclick event to do this.
    > However if the user
    > >clicks the tickbox in error the form will open and then
    > if they unlick it if
    > >they have clicked in error the form opens again. Is there
    > anyway that I can
    > >stop the form opening on unclick?
    > >
    > >--
    > >Tony Williams
    > >
    > >
    > >.
    > >set a procedure to run from the tickbox's On Click event,
    > as
    > Private Sub TickBox_Click()
    > If Me!TickBox Then
    > DoCmd.OpenForm "FormName"
    > End If
    > End Sub
    >
    > i didn't test above, so...if On Click doesn't work, try
    > using the After Update event.
    >
    > or you could nip the problem in the bud by automatically
    > unticking the box when the form opens, as
    > Private Sub TickBox_Click()
    > If Me!TickBox Then
    > DoCmd.OpenForm "FormName"
    > Me!TickBox = False
    > End If
    > End Sub
    > again, try the After Update event if On Click doesn't work.

    Tony Williams Guest

  5. #4

    Default Re: Tick Box problem

    okay, tony, i was awake enough to test the code this
    morning. if you place the first procedure on the tickbox's
    On Click event, it will run correctly and give you the
    result you want. if you remove the procedure from the On
    Click event, and place either the first or second
    procedure on the After Update event, the one you use will
    run as i described below.
    really! :-)

    by the way, a checkbox has a boolean value, so in an
    If...Then statement, both of the following expressions
    evaluate the same:
    If Me!Tickbox Then
    If Me!Tickbox = True Then

    >-----Original Message-----
    >Thanks Tina but the form still opens on the unclick of
    the tick box. I want
    >to stop the form opening if the user unchecks the tickbox
    >Thanks
    >Tony
    >"tina" <californiadreamin7@arrowfm.com> wrote in message
    >news:06c501c3528e$883f0150$a601280a@phx.gbl...
    >>
    >> >.
    >> >set a procedure to run from the tickbox's On Click
    event,
    >> as
    >> Private Sub TickBox_Click()
    >> If Me!TickBox Then
    >> DoCmd.OpenForm "FormName"
    >> End If
    >> End Sub
    >>
    >> i didn't test above, so...if On Click doesn't work, try
    >> using the After Update event.
    >>
    >> or you could nip the problem in the bud by automatically
    >> unticking the box when the form opens, as
    >> Private Sub TickBox_Click()
    >> If Me!TickBox Then
    >> DoCmd.OpenForm "FormName"
    >> Me!TickBox = False
    >> End If
    >> End Sub
    >> again, try the After Update event if On Click doesn't
    work.
    >
    >
    >.
    >
    tina Guest

  6. #5

    Default Re: Tick Box problem

    Thanks Tina worked just fine
    Tony
    "tina" <californiadreamin7@arrowfm.com> wrote in message
    news:003d01c352d6$4ba50210$a601280a@phx.gbl...
    > okay, tony, i was awake enough to test the code this
    > morning. if you place the first procedure on the tickbox's
    > On Click event, it will run correctly and give you the
    > result you want. if you remove the procedure from the On
    > Click event, and place either the first or second
    > procedure on the After Update event, the one you use will
    > run as i described below.
    > really! :-)
    >
    > by the way, a checkbox has a boolean value, so in an
    > If...Then statement, both of the following expressions
    > evaluate the same:
    > If Me!Tickbox Then
    > If Me!Tickbox = True Then
    >
    >
    > >-----Original Message-----
    > >Thanks Tina but the form still opens on the unclick of
    > the tick box. I want
    > >to stop the form opening if the user unchecks the tickbox
    > >Thanks
    > >Tony
    > >"tina" <californiadreamin7@arrowfm.com> wrote in message
    > >news:06c501c3528e$883f0150$a601280a@phx.gbl...
    > >>
    > >> >.
    > >> >set a procedure to run from the tickbox's On Click
    > event,
    > >> as
    > >> Private Sub TickBox_Click()
    > >> If Me!TickBox Then
    > >> DoCmd.OpenForm "FormName"
    > >> End If
    > >> End Sub
    > >>
    > >> i didn't test above, so...if On Click doesn't work, try
    > >> using the After Update event.
    > >>
    > >> or you could nip the problem in the bud by automatically
    > >> unticking the box when the form opens, as
    > >> Private Sub TickBox_Click()
    > >> If Me!TickBox Then
    > >> DoCmd.OpenForm "FormName"
    > >> Me!TickBox = False
    > >> End If
    > >> End Sub
    > >> again, try the After Update event if On Click doesn't
    > work.
    > >
    > >
    > >.
    > >

    Tony Williams Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139