Check Box properties

M

Mike

I need to make a check box visible/invisible according to a user
selection from another combo box.

I have used this in the past, Check<Name of checkbox>.visible = false
and on running a database that I created about three years ago this
works fine.

However implementing the same thing in a new database I am constructing
gives a 'Run Time Error '424' Object required, using the same syntax.
Labels I am using work correctly with label<Name of label>.visible =
false, its just check boxes I am having a problem with.

I am now using Access2002 (10.6771.6817)SP3 and Win XP Pro
The other database was constructed in Access 2000 and Win2000 Pro but it
runs and performs correctly on the new system. I am only getting this
error in the new database.

Thanks in anticipation
regards
Mike
 
D

Douglas J. Steele

Can you give an example of exactly what you mean by "Check<Name of
checkbox>"?
 
M

Mike

Klatuu said:
You don't use the word Check or Label in your statement.
Always qualify the control with the name of the form or if you are working
within the current form, you can use either Me. or Me!

Me.chkAnyName.Visible = False

:
Thanks Klatuu
It worked OK when I just used the name of the checkbox and I wonder why
this has not come up before as I did not have any problems before using
the check[checkboxname] format.
I have not used Me. or Me! I am working within the current form so is
it important to always qualify the control in this way?
 

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