When a chekbox is cheked a subform appears.

F

filo666

I have 2 chek box's, first of all I want tha when one is activate the other
automatically is desactivated (because 2 chek boxe's select has no scence in
my form)
Then I want that when one chek box is activated a specific subform appears,
and when the other is activated other subforma appears, I made this code
(attached below), but it seems that just work with one chek box, no with tow,
Why???


Private Sub Check20_AfterUpdate()
Me!Salidassubform.Visible = Me!Check20
End Sub

Private Sub Form_Current()
Me!Salidassubform.Visible = Me!Check20
End Sub


Private Sub Check10_AfterUpdate()
Me!Notasubform.Visible = Me!Check10
End Sub

Private Sub Form_Current()
Me!Notasubform.Visible = Me!Check10
End Sub

Please HELPPPPP
tks¡¡¡
 
C

Chris Leeds, MVP-FrontPage

If you're using FrontPage 2003 you can use the layers and behaviors feature.

HTH

--
Chris Leeds,
Microsoft MVP-FrontPage

ContentSeed: great tool for web masters,
a fantastic convenience for site owners.
http://contentseed.com/
 
T

Thomas A. Rowe

Also you can not use VBScript client side unless all users are running IE browsers.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
R

Ronx

You should use radio buttons, not check-boxes, in this application.
Check-boxes are used when one or several options are allowed, radio
buttons when only one option is allowed.
 
Top