473,511 Members | 15,046 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 135148
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5058
by: nate axtell | last post by:
In a VB .NET app I changed the text of a label then proceed to run a stored procedure which takes about 20 seconds. The label change doesn't show until after the stored procedure is finished. Is...
2
2080
by: Sjaakie Helderhorst | last post by:
Hi there, I created my own user control (myControl) containing: myCaption - docked top myGrid - docked.fill (datasource: myDataset) myPanel - docked bottom This control is added to the form:...
6
9136
by: Roger Ries via DotNetMonster.com | last post by:
I'm trying to change the text in a label from another form. lblInfo.Text = "ABC" Works for the form your currently in but how the heck do you change that label information from another form. ...
5
12624
by: Luis Ramos | last post by:
Hello, How do i change a label in another form from another one? in vb6 i use to do this: form1: private sub label1_change() form2.label1.caption="hgghjghjg" ' and the label in form2 is...
4
2038
by: NetGoofy | last post by:
Is there a way to change the Value of a Label.Text Property outside an Application, such as the contents of a data.txt file or ini file or something like that. I would like to be able to change...
2
2569
by: =?Utf-8?B?Y2FzaGRlc2ttYWM=?= | last post by:
Hi, I have a Label on a Windows form (Version 1.1.4322) and while I iterate recursively through a method I want to show the name of the current file being copied to another directory. The...
3
10411
kspiros
by: kspiros | last post by:
i can not find a way in order to change a label while this tread is running public void work() { /////// int d = new int; ...
1
19003
by: sweetneel | last post by:
Hi, all In my Asp.net application, I have A Master Page, which has a Label & its id is: "masterpagelabel"; now i want to change the Text of this Label When the Content Page Loads My code...
3
4352
by: saskoPython | last post by:
Hello, I go thrugh number of tutorials and steel can't find one simple thing (or I can't understand how to do this). My question is this: if we make "any" function like this: def myfunc():...
0
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7349
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7417
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5659
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4734
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.