When a chekbox is cheked a subform appears.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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¡¡¡
 
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/
 
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.
==============================================
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top