PC Review


Reply
Thread Tools Rate Thread

How do i format a text box to only accept numbers?

 
 
=?Utf-8?B?YmtlZWxhbmU=?=
Guest
Posts: n/a
 
      16th Dec 2004
When validating form fields in front page i want to only allow numbers for
the person's phone number (without dashes). when i go into form field
validation i understand that i can change the input type to text, number or
integer but even if i change the type to one of those it still accepts
hyphens as a character. is there a way to disallow this? or is there a way
for format the 10 digit number as xxx-xxx-xxxx?

thanks
becky
 
Reply With Quote
 
 
 
 
Thomas A. Rowe
Guest
Posts: n/a
 
      16th Dec 2004
Set field validation to text, then check "Other" only and type in 0123456789

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"bkeelane" <(E-Mail Removed)> wrote in message
news:8EED914C-ADB3-4C64-AA42-(E-Mail Removed)...
> When validating form fields in front page i want to only allow numbers for
> the person's phone number (without dashes). when i go into form field
> validation i understand that i can change the input type to text, number or
> integer but even if i change the type to one of those it still accepts
> hyphens as a character. is there a way to disallow this? or is there a way
> for format the 10 digit number as xxx-xxx-xxxx?
>
> thanks
> becky



 
Reply With Quote
 
=?Utf-8?B?YmtlZWxhbmU=?=
Guest
Posts: n/a
 
      16th Dec 2004
thanks so much!!! i didn't realize it was that easy!

"Thomas A. Rowe" wrote:

> Set field validation to text, then check "Other" only and type in 0123456789
>
> --
> ==============================================
> Thomas A. Rowe (Microsoft MVP - FrontPage)
> WEBMASTER Resources(tm)
> http://www.ycoln-resources.com
> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
> ==============================================
> To assist you in getting the best answers for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
>
> "bkeelane" <(E-Mail Removed)> wrote in message
> news:8EED914C-ADB3-4C64-AA42-(E-Mail Removed)...
> > When validating form fields in front page i want to only allow numbers for
> > the person's phone number (without dashes). when i go into form field
> > validation i understand that i can change the input type to text, number or
> > integer but even if i change the type to one of those it still accepts
> > hyphens as a character. is there a way to disallow this? or is there a way
> > for format the 10 digit number as xxx-xxx-xxxx?
> >
> > thanks
> > becky

>
>
>

 
Reply With Quote
 
=?Utf-8?B?YmtlZWxhbmU=?=
Guest
Posts: n/a
 
      16th Dec 2004
okay now i have another problem... the form is delivering the form results to
a csv file. We then import the records into an access database.
Is there a way to format the fields either in the csv file or in access to
be the correct format (for a ssn the format would be 111-11-1111). I would
leave it up to the applicants to enter this information in but i've tried
that and still get a deluge of ssn's not formatted correctly.

keep in mind that our access database already has records in it that are
formatted correctly (with the dashes) so i don't know if formatting a column
or group of cells in access (if that's even possible) would mess up the
records we already have saved.

also, is there a way to verify that the person has entered a valuable email
address? we have several applicants who just enter their screenname without
the domain.

thanks.

becky

"Thomas A. Rowe" wrote:

> Set field validation to text, then check "Other" only and type in 0123456789
>
> --
> ==============================================
> Thomas A. Rowe (Microsoft MVP - FrontPage)
> WEBMASTER Resources(tm)
> http://www.ycoln-resources.com
> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
> ==============================================
> To assist you in getting the best answers for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
>
> "bkeelane" <(E-Mail Removed)> wrote in message
> news:8EED914C-ADB3-4C64-AA42-(E-Mail Removed)...
> > When validating form fields in front page i want to only allow numbers for
> > the person's phone number (without dashes). when i go into form field
> > validation i understand that i can change the input type to text, number or
> > integer but even if i change the type to one of those it still accepts
> > hyphens as a character. is there a way to disallow this? or is there a way
> > for format the 10 digit number as xxx-xxx-xxxx?
> >
> > thanks
> > becky

>
>
>

 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      16th Dec 2004
Instead of writing to a csv file, which not write directly to the an Access database on the web, and
you would have to format the data prior to it being inserted in the database or whenever you display
the data. You can not verify that a email address is valid, unless you send to it. Depending on what
you are doing, you have folks complete the form, submit, and then they must wait to receive an
email, which has a link back to your site, that they would click on, which then would confirm the
email address used at that point in time was a valid one.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"bkeelane" <(E-Mail Removed)> wrote in message
news:C42D5617-066A-4752-9C11-(E-Mail Removed)...
> okay now i have another problem... the form is delivering the form results to
> a csv file. We then import the records into an access database.
> Is there a way to format the fields either in the csv file or in access to
> be the correct format (for a ssn the format would be 111-11-1111). I would
> leave it up to the applicants to enter this information in but i've tried
> that and still get a deluge of ssn's not formatted correctly.
>
> keep in mind that our access database already has records in it that are
> formatted correctly (with the dashes) so i don't know if formatting a column
> or group of cells in access (if that's even possible) would mess up the
> records we already have saved.
>
> also, is there a way to verify that the person has entered a valuable email
> address? we have several applicants who just enter their screenname without
> the domain.
>
> thanks.
>
> becky
>
> "Thomas A. Rowe" wrote:
>
>> Set field validation to text, then check "Other" only and type in 0123456789
>>
>> --
>> ==============================================
>> Thomas A. Rowe (Microsoft MVP - FrontPage)
>> WEBMASTER Resources(tm)
>> http://www.ycoln-resources.com
>> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
>> ==============================================
>> To assist you in getting the best answers for FrontPage support see:
>> http://www.net-sites.com/sitebuilder/newsgroups.asp
>>
>> "bkeelane" <(E-Mail Removed)> wrote in message
>> news:8EED914C-ADB3-4C64-AA42-(E-Mail Removed)...
>> > When validating form fields in front page i want to only allow numbers for
>> > the person's phone number (without dashes). when i go into form field
>> > validation i understand that i can change the input type to text, number or
>> > integer but even if i change the type to one of those it still accepts
>> > hyphens as a character. is there a way to disallow this? or is there a way
>> > for format the 10 digit number as xxx-xxx-xxxx?
>> >
>> > thanks
>> > becky

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text box won't accept format =?Utf-8?B?SmltUw==?= Microsoft Access Forms 0 25th Jul 2007 05:44 PM
Format cells to only accept numbers =?Utf-8?B?Y3JhZGlubw==?= Microsoft Excel Misc 4 22nd Jul 2006 03:46 PM
cell format in Excel 2002 SP3 will not accept long numbers =?Utf-8?B?c3BrZXJzaA==?= Microsoft Excel Worksheet Functions 1 27th Oct 2005 07:22 PM
How do i format a text box to only accept numbers in phone book st =?Utf-8?B?RGVubmlzIFM=?= Microsoft Word New Users 1 11th Aug 2005 01:51 PM
Forcing a Text Box to accept only Numbers =?Utf-8?B?TWloYWxpcw==?= Microsoft Excel Programming 2 20th Dec 2004 03:30 PM


Features
 

Advertising
 

Newsgroups
 


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