Unable to do VBScripting for CheckBoxes in a Form

M

MBo

I have a web page that has a number of CheckBoxes
It uses VBScripting to check or uncheck other checkboxes automatically

Ex:
Sub Charge2_onclick
Charge1.checked = TRUE
Charge3.checked = FALSE
Charge4.value = 0
End Sub

This works fine, unless I move the CheckBoxes in a Form section. Then I get
"Object required" errors. It seems my CheckBoxes are no longer recognized as
Objetcs or Variables. Is there some way to declare these objects?

Or do I have to completely abandon VB and go for Java? Would Forms and Java
be more appropriate in this task? If so how would the same code as above
look if it were written in Java? I, being a "Java newbie", would appreciate
a simple example to get me on my way :)

Thanks
 

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

Top