Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 12th, 2006, 08: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, 09: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, 11: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


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 network members.
Post your question now . . .
It's fast and it's free

Popular Articles