PC Review


Reply
Thread Tools Rate Thread

Access And Phone Numbers

 
 
=?Utf-8?B?QmlsbCBXaW50ZXI=?=
Guest
Posts: n/a
 
      19th Oct 2007
I have an Access table that have phone numbers stored in it.
I am using an input mask that looks like this 999 999 9999 when entering the
data, but I am sure that Access is storing the data like this 9999999999.

My problem is when displaying the number in FrontPage it is displayed like
this
9999999999 how can I make the number show like this 999 999 9999 in FrontPage.


Thanks Bill
 
Reply With Quote
 
 
 
 
Kathleen Anderson
Guest
Posts: n/a
 
      19th Oct 2007
http://www.spiderwebwoman.com/resour...icks.asp#phone

--

~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
Expression Web Resources: http://www.spiderwebwoman.com/xweb/
FrontPage Resources: http://www.spiderwebwoman.com/resources/
Please reply to the newsgroup for the benefit of others






"Bill Winter" <(E-Mail Removed)> wrote in message
news:36052F20-CD24-4302-B213-(E-Mail Removed)...
>I have an Access table that have phone numbers stored in it.
> I am using an input mask that looks like this 999 999 9999 when entering
> the
> data, but I am sure that Access is storing the data like this 9999999999.
>
> My problem is when displaying the number in FrontPage it is displayed like
> this
> 9999999999 how can I make the number show like this 999 999 9999 in
> FrontPage.
>
>
> Thanks Bill



 
Reply With Quote
 
=?Utf-8?B?T0MgRGVsIEd1eQ==?=
Guest
Posts: n/a
 
      19th Oct 2007
When you create the input mask, there is an option for saving data with the
formating or without the formating. Chose the one that saves the formatting.
Access will then save the spaces, dashes, parenthesis, and other formating
stuff in the table and therefore on your FP Pages.

"Kathleen Anderson" wrote:

> http://www.spiderwebwoman.com/resour...icks.asp#phone
>
> --
>
> ~ Kathleen Anderson
> Microsoft MVP - FrontPage
> Spider Web Woman Designs
> Expression Web Resources: http://www.spiderwebwoman.com/xweb/
> FrontPage Resources: http://www.spiderwebwoman.com/resources/
> Please reply to the newsgroup for the benefit of others
>
>
>
>
>
>
> "Bill Winter" <(E-Mail Removed)> wrote in message
> news:36052F20-CD24-4302-B213-(E-Mail Removed)...
> >I have an Access table that have phone numbers stored in it.
> > I am using an input mask that looks like this 999 999 9999 when entering
> > the
> > data, but I am sure that Access is storing the data like this 9999999999.
> >
> > My problem is when displaying the number in FrontPage it is displayed like
> > this
> > 9999999999 how can I make the number show like this 999 999 9999 in
> > FrontPage.
> >
> >
> > Thanks Bill

>
>
>

 
Reply With Quote
 
=?Utf-8?B?QmlsbCBXaW50ZXI=?=
Guest
Posts: n/a
 
      19th Oct 2007
Thank you for the respones, I tried your tip but for some reason it did not
work.

"OC Del Guy" wrote:

> When you create the input mask, there is an option for saving data with the
> formating or without the formating. Chose the one that saves the formatting.
> Access will then save the spaces, dashes, parenthesis, and other formating
> stuff in the table and therefore on your FP Pages.
>
> "Kathleen Anderson" wrote:
>
> > http://www.spiderwebwoman.com/resour...icks.asp#phone
> >
> > --
> >
> > ~ Kathleen Anderson
> > Microsoft MVP - FrontPage
> > Spider Web Woman Designs
> > Expression Web Resources: http://www.spiderwebwoman.com/xweb/
> > FrontPage Resources: http://www.spiderwebwoman.com/resources/
> > Please reply to the newsgroup for the benefit of others
> >
> >
> >
> >
> >
> >
> > "Bill Winter" <(E-Mail Removed)> wrote in message
> > news:36052F20-CD24-4302-B213-(E-Mail Removed)...
> > >I have an Access table that have phone numbers stored in it.
> > > I am using an input mask that looks like this 999 999 9999 when entering
> > > the
> > > data, but I am sure that Access is storing the data like this 9999999999.
> > >
> > > My problem is when displaying the number in FrontPage it is displayed like
> > > this
> > > 9999999999 how can I make the number show like this 999 999 9999 in
> > > FrontPage.
> > >
> > >
> > > Thanks Bill

> >
> >
> >

 
Reply With Quote
 
=?Utf-8?B?QmlsbCBXaW50ZXI=?=
Guest
Posts: n/a
 
      19th Oct 2007
Kathleen, thanks for your help I gave it a try but no luck. this is what I
have.

Thanks for your help

SELECT People.tFirstName, People.tLastName, Company.tCompanyName,
Company.tAddress1, Company.tAddress2, Company.tCity, Company.tState,
Company.tZipCode, People.tEmailAddress, Company.Active, Company.tType,
Company.twebsite, People.tMobilePhone, Company.tPhone1, Company.tPhone,
People.Phone,
FORMAT(tPhone,'(###) ###-####') AS NewPhone
FROM People INNER JOIN Company ON People.iCompanyFk=Company.iCompanyPk
WHERE (((Company.Active)=True) AND ((Company.tType)="Allied"))
ORDER BY Company.tCompanyName;

"Kathleen Anderson" wrote:

> http://www.spiderwebwoman.com/resour...icks.asp#phone
>
> --
>
> ~ Kathleen Anderson
> Microsoft MVP - FrontPage
> Spider Web Woman Designs
> Expression Web Resources: http://www.spiderwebwoman.com/xweb/
> FrontPage Resources: http://www.spiderwebwoman.com/resources/
> Please reply to the newsgroup for the benefit of others
>
>
>
>
>
>
> "Bill Winter" <(E-Mail Removed)> wrote in message
> news:36052F20-CD24-4302-B213-(E-Mail Removed)...
> >I have an Access table that have phone numbers stored in it.
> > I am using an input mask that looks like this 999 999 9999 when entering
> > the
> > data, but I am sure that Access is storing the data like this 9999999999.
> >
> > My problem is when displaying the number in FrontPage it is displayed like
> > this
> > 9999999999 how can I make the number show like this 999 999 9999 in
> > FrontPage.
> >
> >
> > Thanks Bill

>
>
>

 
Reply With Quote
 
Ronx
Guest
Posts: n/a
 
      20th Oct 2007
FORMAT(tPhone,'(###) ###-####')
should be
FORMAT(Company.tPhone,'(###) ###-####')

This will only format the Company.tPhone field. You will have to repeat
this for all the other telephone numbers if you want them formatted as
well. You can remove Company.tPhone from the SQL since you will be
displaying the NewPhone field instead.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp




"Bill Winter" <(E-Mail Removed)> wrote in message
news:F309B4C5-7FCD-406D-A4FF-(E-Mail Removed):

> Kathleen, thanks for your help I gave it a try but no luck. this is what I
> have.
>
> Thanks for your help
>
> SELECT People.tFirstName, People.tLastName, Company.tCompanyName,
> Company.tAddress1, Company.tAddress2, Company.tCity, Company.tState,
> Company.tZipCode, People.tEmailAddress, Company.Active, Company.tType,
> Company.twebsite, People.tMobilePhone, Company.tPhone1, Company.tPhone,
> People.Phone,
> FORMAT(tPhone,'(###) ###-####') AS NewPhone
> FROM People INNER JOIN Company ON People.iCompanyFk=Company.iCompanyPk
> WHERE (((Company.Active)=True) AND ((Company.tType)="Allied"))
> ORDER BY Company.tCompanyName;
>
> "Kathleen Anderson" wrote:
>
> > http://www.spiderwebwoman.com/resour...icks.asp#phone
> >
> > --
> >
> > ~ Kathleen Anderson
> > Microsoft MVP - FrontPage
> > Spider Web Woman Designs
> > Expression Web Resources: http://www.spiderwebwoman.com/xweb/
> > FrontPage Resources: http://www.spiderwebwoman.com/resources/
> > Please reply to the newsgroup for the benefit of others
> >
> >
> >
> >
> >
> >
> > "Bill Winter" <(E-Mail Removed)> wrote in message
> > news:36052F20-CD24-4302-B213-(E-Mail Removed)...
> > >I have an Access table that have phone numbers stored in it.
> > > I am using an input mask that looks like this 999 999 9999 when entering
> > > the
> > > data, but I am sure that Access is storing the data like this 9999999999.
> > >
> > > My problem is when displaying the number in FrontPage it is displayed like
> > > this
> > > 9999999999 how can I make the number show like this 999 999 9999 in
> > > FrontPage.
> > >
> > >
> > > Thanks Bill

> >
> >
> >


 
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
Microsoft Access verify phone numbers Tony O Microsoft Access Reports 1 20th Apr 2011 03:57 AM
Phone Numbers for Access MVPS dbahooker@hotmail.com Microsoft Access 2 24th May 2007 03:23 AM
Data Access Page and Phone Numbers =?Utf-8?B?U3RldmVUNjQ=?= Microsoft Access 0 21st Sep 2006 10:33 PM
Data Access Pages - Formatting US Phone Numbers =?Utf-8?B?SkZlZGxlcg==?= Microsoft Access Reports 0 7th Feb 2006 08:30 PM
Dialing numbers after initial phone number on PPC 2003 Phone Edition eric.mobiledev@gmail.com Microsoft Dot NET Compact Framework 1 4th Oct 2005 10:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:05 PM.