Solved

TEXTboxs

Posted on 1998-08-26
1
195 Views
Last Modified: 2010-04-30
ok i need to know how to display the first 3 letters of a text box in a other textbox or Listbox
0
Comment
Question by:AOL1998
1 Comment
 
LVL 4

Accepted Solution

by:
mcix earned 10 total points
ID: 1431065

Dim mstrFirstThreeCharacters As String
mstrFirstThreeCharacters = Left$(txtFirstTextBox,3)

txtSecondTextBox.Text = mstrFirstThreeCharacters

lstOnlyListBox.AddItem mstrFirstThreeCharacters

This code could be put into many events depending on how/when you want the other controls to be populated
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now