Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 27th, 2003, 05:01 AM
Authorized User
 
Join Date: Oct 2003
Location: , , .
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default textfield




hi,

i have a form with a textfield and a command button.
how can i detect if the user has entered anything to the textfield before i actually anabled the command button.
i did not use got focus as i have gave the focus to the textfield when the form first loaded.
i too did not use after update as after the user have to hit the enter then the command button will be enabled.

is there a way to detect that at least one char is entered to the field then the command button will be enabled?


pls advice
nono
Reply With Quote
  #2 (permalink)  
Old October 27th, 2003, 06:22 AM
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

use the OnKeyDown event
Reply With Quote
  #3 (permalink)  
Old October 27th, 2003, 10:24 AM
Friend of Wrox
Points: 4,007, Level: 26
Points: 4,007, Level: 26 Points: 4,007, Level: 26 Points: 4,007, Level: 26
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Lansing, Michigan, USA.
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

You could keep the button disabled and then enable it on the textbox's "On Dirty" Event. On the textbox's "AfterUpdate" event, check to make sure the user didn't enter nothing into the box (i.e. started typing and then erased it), and if so, disable the button again.


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Textfield deean Pro JSP 1 June 19th, 2008 02:11 PM
creating textfield on the fly Acod Classic ASP Professional 1 April 25th, 2007 09:22 AM
comparing value in session variable and textfield johnsonlim026 ASP.NET 1.0 and 1.1 Basics 3 August 7th, 2005 12:01 AM
show new textfield from drop-down list dhaywirex Javascript How-To 2 March 11th, 2004 09:16 PM
saving textfield format in database dhaywirex Classic ASP Databases 3 March 10th, 2004 12:13 PM



All times are GMT -4. The time now is 04:32 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.