Home  |   French  |   About  |   Search  | mvps.org  

What's New
Table Of Contents
Credits
Netiquette
10 Commandments 
Bugs
Tables
Queries
Forms
Reports
Modules
APIs
Strings
Date/Time
General
Downloads
Resources
Search
Feedback
mvps.org

In Memoriam

Terms of Use


VB Petition

Forms: Grab what the user has typed in a control (uncommitted value)

Author(s)
Dev Ashish

(Q) I want to grab the text as the user types in a textbox control on the form. However, I'm only able to get the old stored value of the control, not what the user is typing in. How do I get this value?

(A) Accessing the .Value property of Textbox controls (me!tbxControl.Value) will always show the 'committed' value of the field. To grab the 'uncommitted' value in the control, ie. what the user is typing in before it's saved or 'committed', use the control's OnChange event and .TEXT property (me!tbxControl.Text).


© 1998-2010, Dev Ashish & Arvin Meyer, All rights reserved. Optimized for Microsoft Internet Explorer