PC Review


Reply
Thread Tools Rate Thread

Clickbox control help needed

 
 
BrianG
Guest
Posts: n/a
 
      13th Mar 2008
I would am attempting to create two clickboxes where when one is
turned On the other is turned Off automatically. No luck so far. Any
suggestions would be appreciated. Below are two of the codes I have
tried.

Private Sub CheckBox1_Click()
CheckBox1.Value = True
CheckBox2.Value = False
End Sub

Private Sub CheckBox2_Click()
CheckBox2.Value = True
CheckBox1.Value = False
End Sub

AND

Private Sub CheckBox1_Click()
If CheckBox2.Value = True Then
CheckBox2.Value = False
End If
End Sub

Private Sub CheckBox2_Click()
If CheckBox1.Value = True Then
CheckBox1.Value = False
End If
End Sub


TIA,

BrianG
 
Reply With Quote
 
 
 
 
Jim Thomlinson
Guest
Posts: n/a
 
      13th Mar 2008
Why not use radio buttons (small circles) as they are designed specifically
to be mutually exclusive (only one can be selected at a time).
--
HTH...

Jim Thomlinson


"BrianG" wrote:

> I would am attempting to create two clickboxes where when one is
> turned On the other is turned Off automatically. No luck so far. Any
> suggestions would be appreciated. Below are two of the codes I have
> tried.
>
> Private Sub CheckBox1_Click()
> CheckBox1.Value = True
> CheckBox2.Value = False
> End Sub
>
> Private Sub CheckBox2_Click()
> CheckBox2.Value = True
> CheckBox1.Value = False
> End Sub
>
> AND
>
> Private Sub CheckBox1_Click()
> If CheckBox2.Value = True Then
> CheckBox2.Value = False
> End If
> End Sub
>
> Private Sub CheckBox2_Click()
> If CheckBox1.Value = True Then
> CheckBox1.Value = False
> End If
> End Sub
>
>
> TIA,
>
> BrianG
>

 
Reply With Quote
 
BrianG
Guest
Posts: n/a
 
      13th Mar 2008
I'm trying to use clickboxes because the look of the clickbox on the
printed form is preferable to that of the radio button. Of course, if
I can't control the clickboxes I'll need to consider other options.


BrianG
 
Reply With Quote
 
Jim Thomlinson
Guest
Posts: n/a
 
      13th Mar 2008
You can try this...

Private Sub CheckBox1_Click()
If CheckBox1.Value = True Then
CheckBox2.Value = False
CheckBox3.Value = False
End If
End Sub

Private Sub CheckBox2_Click()
If CheckBox2.Value = True Then
CheckBox1.Value = False
CheckBox3.Value = False
End If
End Sub

Private Sub CheckBox3_Click()
If CheckBox3.Value = True Then
CheckBox1.Value = False
CheckBox2.Value = False
End If
End Sub
--
HTH...

Jim Thomlinson


"BrianG" wrote:

> I'm trying to use clickboxes because the look of the clickbox on the
> printed form is preferable to that of the radio button. Of course, if
> I can't control the clickboxes I'll need to consider other options.
>
>
> BrianG
>

 
Reply With Quote
 
BrianG
Guest
Posts: n/a
 
      13th Mar 2008
That did it. Many thanks Jim.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Control needed Samuel Shulman Microsoft ASP .NET 4 6th Dec 2006 06:51 PM
What is the control?? help needed.. =?Utf-8?B?RGFuaWVs?= Microsoft ASP .NET 2 21st Sep 2005 04:40 PM
VB.Net control needed Rob Panosh Microsoft VB .NET 4 9th Apr 2004 12:37 PM
CountrySelector Control : help needed Versteijn Microsoft ASP .NET 0 1st Mar 2004 12:13 PM
Tab Control Help Needed Carl J. Hixon Microsoft Access Forms 1 2nd Dec 2003 04:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:36 AM.