Writing text to a form with a VBA sub

  • Thread starter Thread starter Roger Withnell
  • Start date Start date
R

Roger Withnell

I can set text boxes with text from a VBA form, but I can't write some
information onto the form.

It seems that text boxes are Controls but Labels are not, so I can't write
to Labels?

How do I do it?
 
When you write to lables you should add caption

Forms![FormName]![LableName].caption = "Text"
or
Me.LableName.caption = "Text"
 

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