Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Determine changes in text boxes

Posted on 2002-03-10
6
125 Views
Last Modified: 2010-05-02
I have several text boxes on one form. How can I loop through each text box on the form and determine if there were any text changes. I only have 30 points to post.
0
Comment
Question by:Draner
6 Comments
 
LVL 1

Expert Comment

by:Neo78
ID: 6855214
Are the text boxes initially empty? or they already have some info in them?
0
 
LVL 50

Accepted Solution

by:
Ryan Chong earned 30 total points
ID: 6855265
Hi,

Initially copy the content of the TextBoxes' Value into their Tag (in Form_Load() event). When running the program, Check the Tag and Value, if different then this means user make some changes, or simply define use a variable (maybe True or False), make it True if the Change event of TextBoxes is fired.
0
 

Author Comment

by:Draner
ID: 6855602
Neo, the text boxes have info in them
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:Draner
ID: 6855612
Neo, the text boxes have info in them
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 6855644
Couldn't you just add code directly into the Change event procedure?  Or do you want to handle all of them in one block/batch rather than as they change?
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 6855674
YOu could always set a Form level flag: blnTXTChange as Boolean

then, for each TextBox on the form, it the Change Event:

Private Sub ANYTEXTBOX_Change() ' for EACH TEXTBOX
   blnTXTChange = True
End Sub

then you can test blnTXTChange and know if ANY Textbox had a change to its value.

Hope this is clear.

Artur Wood
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VBA saving file message display 5 72
Windows 10 start screen issues 9 55
TT Auto Dashboard 13 95
Fastest way to find and count same items VB6 16 23
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

856 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