Frame with checkboxes

endri81

Registered User.
Local time
Today, 08:04
Joined
Jul 5, 2010
Messages
121
Hi.
Is it possible to create a frame with 3 check-boxes which can be checked in the same time all three or just one or two of them.Also I need three text boxes to be activated for entering text when this check-boxes get checked.Please help
 
Not a normal option group frame but you can make it look like one by putting 3 separate checkbox controls on your form and using the box control around it and put a label up at the top the way they go. Then you can have more than one selected at a time. If you use the regular option group then only one can be selected at any one time.
 
Tried this code but nothing happens :(((
I got 3 textboxes IlaciTremujoriDyte,IlaciTremujoriTret,IlaciTremujoriPare.
Help pls

Private Sub CheckTremujoriDyte_Click()
If Me.CheckTremujoriDyte.Value = -1 Then
Me.IlaciTremujoriDyte.Enabled = True
Else
Me.IlaciTremujoriDyte.Enabled = False
End If
End Sub
Private Sub CheckTremujoriPare_Click()

If Me.CheckTremujoriPare.Value = -1 Then
Me.IlaciTremujoriPare.Enabled = True
Else
Me.IlaciTremujoriPare.Enabled = False
End If
End Sub
Private Sub CheckTremujoriTrete_Click()
If Me.CheckTremujoriTrete.Value = -1 Then
Me.IlaciTremujoriTret.Enabled = True
Else
Me.IlaciTremujoriTret.Enabled = False
End If
End Sub
 
Don't use the click event. Use the After Update event of the checkbox.

Also, you can simplify this:
Code:
Private Sub CheckTremujoriDyte_AfterUpdate()
        Me.IlaciTremujoriDyte.Enabled = Me.CheckTremujoriDyte
End Sub

 
Private Sub CheckTremujoriPare_AfterUpdate()
        Me.IlaciTremujoriPare.Enabled = Me.CheckTremujoriPare
End Sub
 

Private Sub CheckTremujoriTrete_AfterUpdate()
        Me.IlaciTremujoriTret.Enabled = Me.CheckTremujoriTrete
End Sub
 
You'll also have to place these codes in the Form_Current event, as well, in order for the formatting to be appropriate, as you move from record to record.

Linq ;0)>
 
You'll also have to place these codes in the Form_Current event, as well, in order for the formatting to be appropriate, as you move from record to record.

Linq ;0)>

Yes, that is true. Thanks for the additional info. :)
 

Users who are viewing this thread

Back
Top Bottom