A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Accept numeric input only in textbox



 
 
Thread Tools Display Modes
  #1  
Old August 2nd, 2005, 10:11 PM
A.J.M. van Rijthoven
external usenet poster
 
Posts: n/a
Default Accept numeric input only in textbox

Is there an easy way to accept only numeric input in an unbound field.
I want to be able to search a specific record by number. When I enter
a letter, the query gives an inputscreen assuming that the letter is
part of the querysearch...
To prevent this I want to accept only numeric input in the unbound
'search field'. How do I do this??

Thanks in advance
  #2  
Old August 2nd, 2005, 10:18 PM
Klatuu
external usenet poster
 
Posts: n/a
Default

Set the Format property of the text box to 9999 (or how many digits are
required). You can find more detailed info in VBA Help

"A.J.M. van Rijthoven" wrote:

Is there an easy way to accept only numeric input in an unbound field.
I want to be able to search a specific record by number. When I enter
a letter, the query gives an inputscreen assuming that the letter is
part of the querysearch...
To prevent this I want to accept only numeric input in the unbound
'search field'. How do I do this??

Thanks in advance

 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Input Mask for IP address Ryan Langton General Discussion 1 June 16th, 2005 09:37 PM
Have two fields with same values in one record and one input. How? [email protected] Using Forms 2 June 15th, 2005 12:22 AM
Input Validation rtrammel New Users 3 May 12th, 2005 05:15 PM
Using Row values as input to Variables Don DuRousseau Worksheet Functions 2 November 30th, 2003 06:00 AM
NUMERIC INPUT TO A CELL ANGELO Setting up and Configuration 1 October 9th, 2003 08:02 PM


All times are GMT +1. The time now is 08:17 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.