473,831 Members | 2,250 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 135580
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.Ca ption = "New Title"
Mar 12 '06 #2
"Simon" <S.******@HCCne t.nl> wrote in
news:44******** *************** @dreader12.news .xs4all.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.c aption = "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
5079
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 there a way to flush the label.text change right before the stored procedure call so that the text will be displayed to the user while the procedure is running? the "pseudo"code for what i have is: Label5.Visible = True Label5.Text = "Running...
2
2090
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: form1.controls.add(myControl) I wish to change label-value on myPanel whenever a value of myDataset has changed (by editing the grid). Since dataset.onchange doesn't exists, what
6
9168
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. Later --
5
12691
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 changed by the value i wanted end sub
4
2049
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 this property without going into VB Thanks Goob
2
2605
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 Label is not visible until the backup begins, at which point I resize the form to show the Label and a ProgressBar. As each file is copied, the Label is updated:
3
10522
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; Thread.Sleep(draw_delay); for (int i = 0; i < 5; i++) { d = 0;
1
19097
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 is: void Page_Load(...........) Label mylabel=(Label)Master.FindControl("masterpagelabel")
3
4366
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(): #code here: return
0
9793
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9642
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10493
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10206
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7747
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6951
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4416
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3960
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3076
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.