Connecting Tech Pros Worldwide Help | Site Map

VBA code to change the label text

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 12th, 2006, 07:25 PM
Simon
Guest
 
Posts: n/a
Default 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



  #2  
Old March 12th, 2006, 08:05 PM
salad
Guest
 
Posts: n/a
Default Re: VBA code to change the label text

Simon wrote:
[color=blue]
> 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
>
>[/color]
Me.LabelName.Caption = "New Title"
  #3  
Old March 12th, 2006, 10:35 PM
Bob Quintal
Guest
 
Posts: n/a
Default Re: VBA code to change the label text

"Simon" <S.v.Beek@HCCnet.nl> wrote in
news:44147fd2$0$18780$e4fe514c@dreader12.news.xs4a ll.nl:
[color=blue]
> 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
>[/color]
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.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.