Ask a Question related to Microsoft Access, Design and Development.
-
Tony Williams #1
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
-
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... -
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... -
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... -
#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: ... -
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... -
tina #2
Tick Box problem
user clicks on them>-----Original Message-----
>I have a series of tickbox controls on a form. When theHowever if the user>a form is opened, I used the onclick event to do this.if they unlick it if>clicks the tickbox in error the form will open and thenanyway that I can>they have clicked in error the form opens again. Is thereas>stop the form opening on unclick?
>
>--
>Tony Williams
>
>
>.
>set a procedure to run from the tickbox's On Click event,
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
-
Tony Williams #3
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...>> user clicks on them> >-----Original Message-----
> >I have a series of tickbox controls on a form. When the> However if the user> >a form is opened, I used the onclick event to do this.> if they unlick it if> >clicks the tickbox in error the form will open and then> anyway that I can> >they have clicked in error the form opens again. Is there> as> >stop the form opening on unclick?
> >
> >--
> >Tony Williams
> >
> >
> >.
> >set a procedure to run from the tickbox's On Click event,
> 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
-
tina #4
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
the tick box. I want>-----Original Message-----
>Thanks Tina but the form still opens on the unclick ofevent,>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 Clickwork.>> 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>
>
>.
>tina Guest
-
Tony Williams #5
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
>
>> the tick box. I want> >-----Original Message-----
> >Thanks Tina but the form still opens on the unclick of> event,> >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> work.> >> 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> >
> >
> >.
> >
Tony Williams Guest



Reply With Quote

