469,323 Members | 1,297 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

VBA code to change the label text

Dear reader,

Is it possible to change the text of a label in a form on the event "By
open".

In the event some VBA code will change the label text.

If I specify: Me.name_Label = "new title"

I receive the massage "Object doesn't support this property or method."

Thanks for any help.

Kind regards,

Simon van Beek
Mar 12 '06 #1
2 125430
Simon wrote:
Dear reader,

Is it possible to change the text of a label in a form on the event "By
open".

In the event some VBA code will change the label text.

If I specify: Me.name_Label = "new title"

I receive the massage "Object doesn't support this property or method."

Thanks for any help.

Kind regards,

Simon van Beek

Me.LabelName.Caption = "New Title"
Mar 12 '06 #2
"Simon" <S.******@HCCnet.nl> wrote in
news:44***********************@dreader12.news.xs4a ll.nl:
Dear reader,

Is it possible to change the text of a label in a form on the
event "By
open".

In the event some VBA code will change the label text.

If I specify: Me.name_Label = "new title"

I receive the massage "Object doesn't support this property or
method."

Thanks for any help.

Kind regards,

Simon van Beek

You need to address the label's .caption property.
Me.name_Label.caption = "new title"

--
Bob Quintal

PA is y I've altered my email address.
Mar 12 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Sjaakie Helderhorst | last post: by
6 posts views Thread by Roger Ries via DotNetMonster.com | last post: by
4 posts views Thread by NetGoofy | last post: by
2 posts views Thread by =?Utf-8?B?Y2FzaGRlc2ttYWM=?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.