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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Input Mask



 
 
Thread Tools Display Modes
  #1  
Old September 27th, 2008, 02:06 AM posted to microsoft.public.access
Secret Squirrel
external usenet poster
 
Posts: 683
Default Input Mask

I have a text box on my form that I have set up with an input mask of 0.0.
Is there a way to have it automatically enter the .0 if a user was to just
enter 1 instead of 1.0? Right now if you just enter a 1 you get an error
message that says you need to enter a value based on the input mask. I'd also
like to eliminate that default message and create my own message.
  #2  
Old September 27th, 2008, 04:30 AM posted to microsoft.public.access
Tom van Stiphout[_2_]
external usenet poster
 
Posts: 1,653
Default Input Mask

On Fri, 26 Sep 2008 18:06:01 -0700, Secret Squirrel
wrote:

You want to have your cookie and eat it too. If you specify a mask of
0.0 then you specify that the user MUST enter that format.
Then you turn around and say "but I didn't really mean it". So dump
the mask, and validate a non-masked text box.
Of course you realize the Format property can be used for formatting,
but you need to realize its peculiarities as well (it is a DISPLAY
feature, and does NOT affect the storage of the value).

Play with these concepts some more, and you will be able to find a
happy medium for your app.

-Tom.
Microsoft Access MVP



I have a text box on my form that I have set up with an input mask of 0.0.
Is there a way to have it automatically enter the .0 if a user was to just
enter 1 instead of 1.0? Right now if you just enter a 1 you get an error
message that says you need to enter a value based on the input mask. I'd also
like to eliminate that default message and create my own message.

 




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


All times are GMT +1. The time now is 01:22 PM.


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