Detail_format not working

G

Guest

I have a number of text boxes on each line of my report but depending on
certain criteria, i want to play with the .visible property, eg.

If txtbox1.value = "Yes" then
txtbox2.visible = True
txtbox3.visible = False
Else
txtbox2.visible = False
txtbox3.visible = True
End If

Now, when i type the code and come to the . it normally lists the available
properties however both .value and .visible are not in the list. All controls
are DEFINATELY text boxes, as opposed to labels etc.

Whats wrong ??
 
G

Guest

Doesnt matter - done it.

I've had problems with Access. Usually where my right-click doesnt work. I
solve it by just closing and re-opening it. Whether that solved it, or it may
have been a syntax error, I can be sure.

Thanks anyway
 
R

Rick Brandt

Widemonk said:
I have a number of text boxes on each line of my report but depending
on certain criteria, i want to play with the .visible property, eg.

If txtbox1.value = "Yes" then
txtbox2.visible = True
txtbox3.visible = False
Else
txtbox2.visible = False
txtbox3.visible = True
End If

Now, when i type the code and come to the . it normally lists the
available properties however both .value and .visible are not in the
list. All controls are DEFINATELY text boxes, as opposed to labels
etc.

Whats wrong ??

Sometimes you don't see everything you should see in the intellisense drop
down. Doesn't mean it won't work if you enter a property or method that you
know is correct.
 

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