VBA Label/TextBox properties missing?

R

Rog

I have some unbound text boxes and labels that I have
added to my report. In VBA, I want to change some of the
properties... i.e Foreground color, Caption, Value.

The problem is when I go to use them in code, the
Caption, Text, Value, Forecolor etc are not showing up.
I get a bad list of values to use. Other controls the
values in the dropdown list seem to be ok.

How can I get this fixed?

Thanks,

Rog
 
D

Dan

Hello!
Even though these properties do not show up in the list,
you can still use them by typing in the name of the
property and the value you wish to assign to it. If you
have a control called Text1:

Text1.ForeColor = 255 (255 is the number for red)
Text1.Value = "Hello"
Text1.Visible = True

Go in to Access Help and on the Find Tab type in:
"Text Box Control Properties" for more info.
 

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