1af88 How do I get Access to display a UK telephone number?
Sign Up |  Live StatsLive Stats    Articles 37,302| Comments 176,977| Members 19,397, Newest birinder| Online 373
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Sikh Philosophy Network » Sikh Philosophy Network » Current News » Information Technology » How do I get Access to display a UK telephone number?

How do I get Access to display a UK telephone number?

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 100 USD (20%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Telephone directory brooke Information Technology 1 28-Jul-2006 08:30 AM
How do I properly display decimals in Access Roger Parsons Information Technology 2 28-Jul-2006 08:30 AM
How do I display a number in a field when I click on a button. Jarrod Information Technology 2 28-Jul-2006 08:29 AM
Display Outlook from Access Peter Hibbs Information Technology 2 28-Jul-2006 08:14 AM
Do not allow a number to round up or down in Access KenF@bsahs Information Technology 2 01-Nov-2005 13:40 PM


Tags
access, display, telephone, number
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:10 AM
Dave Walling's Avatar Dave Walling
Guest
 
Posts: n/a
   
   
How do I get Access to display a UK telephone number?

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
How do I get Access to display a UK telephone number, without truncating it?
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/10166-how-do-i-get-access-display.html
IE. 01223456789 is displayed as 1223456789. No matter what I try it either
does this or throws up an error message. Any help would be grateful as I am
new to this side of computing.

*







Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:10 AM
Pieter Wijnen's Avatar Pieter Wijnen
Guest
 
Posts: n/a
   
   
Re: How do I get Access to display a UK telephone number?

easiest is to store it in a text field..
else use the format property .
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10166

Pieter

"Dave Walling" Walling@discussions.microsoft.com> wrote in message
news:7E079602-1C2F-4067-9958-E99F9C584A71@microsoft.com...
> How do I get Access to display a UK telephone number, without truncating
> it?
> IE. 01223456789 is displayed as 1223456789. No matter what I try it either
> does this or throws up an error message. Any help would be grateful as I
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10166
> am
> new to this side of computing.



Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:10 AM
Sheila D's Avatar Sheila D
Guest
 
Posts: n/a
   
   
RE: How do I get Access to display a UK telephone number?

I guess the field is formatted as a number which normally drops leading
zeros. I'd format it as Text then you can include spaces in your telephone
numbers as well

HTH - Sheila

"Dave Walling" wrote:

> How do I get Access to display a UK telephone number, without truncating it?
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10166
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10166
> IE. 01223456789 is displayed as 1223456789. No matter what I try it either
> does this or throws up an error message. Any help would be grateful as I am
> new to this side of computing.

Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:10 AM
torch_music's Avatar torch_music
Guest
 
Posts: n/a
   
   
RE: How do I get Access to display a UK telephone number?

Dave,
First thing is that you need to ensure that the field you are saving the
data in is a text field, if Access thinks it is a number field it will lose
the leading zero, the next thing you can do is use an input mask to get a US
style telephone number format (0123) 456 7890 or create a custom one
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10166
depending on how you wish to display the data.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10166
Hope this helps
Peter

"Dave Walling" wrote:

> How do I get Access to display a UK telephone number, without truncating it?
> IE. 01223456789 is displayed as 1223456789. No matter what I try it either
> does this or throws up an error message. Any help would be grateful as I am
> new to this side of computing.

Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:10 AM
(PeteCresswell)'s Avatar (PeteCresswell)
Guest
 
Posts: n/a
   
   
Re: How do I get Access to display a UK telephone number?

Per Dave Walling Walling@discussions.microsoft.com>:
>01223456789 is displayed as 1223456789. No matter what I try it either
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10166
>does this or throws up an error message. Any help would be grateful as I am
>new to this side of computing.


As others have suggested: make it a "Text" field.

Also, I'd avoid trying to be cute with formatting. Just store whatever the user
types in and do not try to format it. Reason: you can get bogged down with
extension formats, international dialing codes, and other unexpected additions
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10166
to the raw number.
--
PeteCresswell
Reply With Quote
  #6 (permalink)  
Old 28-Jul-2006, 08:10 AM
Rick Wannall's Avatar Rick Wannall
Guest
 
Posts: n/a
   
   
Re: How do I get Access to display a UK telephone number?

As Pete says, echoing others, make it a text field. A phone number field is
only incidentally filled with numbers. No calculation is done on these
numbers, so trying to keep it a numeric field does nothing but keep you from
being able to format it the way you want to see it.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10166

I also second storing exactly what the user types in unless there is a
compelling reason to format. If there is, then it will be worth the time it
takes to add a column somewhere (probably the Country column, which may
already exist), and write a function such as this:

Public Function FormatMyPhone(MyCountry as string, MyNumber as string) as
string

select case MyCountry
Case "CA"
...formatting code here
Case "USA"
...formatting code here
Case "Mexico"
...formatting code here
Case Else
FormatMyPhone = MyNumber
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10166
end select

exit function

end function

In the afterupdate event of the phone number textbox, you store the
formatted value using a call to your function. Then, store exactly that.


Reply With Quote
  #7 (permalink)  
Old 28-Jul-2006, 08:11 AM
torch_music's Avatar torch_music
Guest
 
Posts: n/a
   
   
Re: How do I get Access to display a UK telephone number?

Agreed you need to store what the user types in, but you should give some
thought to validation of the data. For example there should not be any alpha
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10166
characters in the data, so you should check for that especially instances of
users mistakenly entering a capital i 'I' instead of a one '1'. It does
happen. But also bear in mind that some people enter numbers in the following
format +44 (207) 123 1234. Do you want to store the + sign? Do you want to
store the spaces? That is why I was recommending the use of an input mask, it
guides the user in how you want them to enter the data so that you end up
with some consistency, but behind the scene you control how the actual data
is stored in the database.

"Rick Wannall" wrote:

> As Pete says, echoing others, make it a text field. A phone number field is
> only incidentally filled with numbers. No calculation is done on these
> numbers, so trying to keep it a numeric field does nothing but keep you from
> being able to format it the way you want to see it.
>
> I also second storing exactly what the user types in unless there is a
> compelling reason to format. If there is, then it will be worth the time it
> takes to add a column somewhere (probably the Country column, which may
> already exist), and write a function such as this:
>
> Public Function FormatMyPhone(MyCountry as string, MyNumber as string) as
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10166
> string
>
> select case MyCountry
> Case "CA"
> ...formatting code here
> Case "USA"
> ...formatting code here
> Case "Mexico"
> ...formatting code here
> Case Else
> FormatMyPhone = MyNumber
> end select
>
> exit function
>
> end function
>
> In the afterupdate event of the phone number textbox, you store the
> formatted value using a call to your function. Then, store exactly that.
>
>
>

Reply With Quote
  #8 (permalink)  
Old 28-Jul-2006, 08:11 AM
(PeteCresswell)'s Avatar (PeteCresswell)
Guest
 
Posts: n/a
   
   
Re: How do I get Access to display a UK telephone number?

Per torch_music:
>Agreed you need to store what the user types in, but you should give some
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10166
>thought to validation of the data. For example there should not be any alpha
>characters in the data, so you should check for that especially instances of
>users mistakenly entering a capital i 'I' instead of a one '1'. It does


But why? Assuming the info is not tb used by autodialers - just by people....
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10166

e.g. 011-44-51-296-1000 x43

and

610-297-0953, "George"


Could both be legitimate, useful numbers for a user.


Or even "Pete@Beerbelly.com"..... assuming that some users
might want to use the field as a "contact node" and not just a phone number.
--
PeteCresswell
Reply With Quote
  #9 (permalink)  
Old 28-Jul-2006, 08:11 AM
Jamie Collins's Avatar Jamie Collins
Guest
 
Posts: n/a
   
   
Re: How do I get Access to display a UK telephone number?

  Donate Today!  

torch_music wrote:
> you should give some
> thought to validation of the data.


Here's some thoughts on the subject (I'm going to break my own rule and
use only 'ANSI mode' wildcard characters ):

CREATE TABLE Test9 (

contact_detail_type VARCHAR(9) DEFAULT 'Business' NOT NULL,

CONSTRAINT TelephoneContactDetails__contact_detail_type__valu es
CHECK (contact_detail_type IN ('Business', 'Home', 'Other')),

national_number VARCHAR(20) NOT NULL,

CONSTRAINT telephone_contact_detail_national_number__pattern
CHECK
(
national_number NOT LIKE '%[!0-9 -]%'
AND national_number LIKE '%[0-9]%'
),

CONSTRAINT telephone_contact_detail_national_number__spaces
CHECK
(
national_number NOT LIKE ' %'
AND national_number NOT LIKE '% '
AND national_number NOT LIKE '% %'
),

CONSTRAINT telephone_contact_detail_national_number__hyphens
CHECK
(
national_number NOT LIKE '-%'
AND national_number NOT LIKE '%-'
AND national_number NOT LIKE '%--%'
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10166
),

extension_number VARCHAR(6),

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10166
CONSTRAINT telephone_contact_detail_extension_number__pattern
CHECK (extension_number NOT LIKE '%[!0-9]%'),

country_number VARCHAR(3) DEFAULT '44' NOT NULL,

CONSTRAINT telephone_contact_detail_country_number__pattern
CHECK (country_number NOT LIKE '%[!0-9]%'),

CONSTRAINT telephone_contact_detail_country_number__UK_only
CHECK (country_number = '44')
);

Jamie.

--

Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

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

» Active Discussions
Textbooks Spotted...
Today 12:51 PM
6 Replies, 80 Views
Do you believe in...
By akiva
Today 12:46 PM
174 Replies, 3,572 Views
Nitnem Gutka - Gurmukhi...
By Ishna
Today 12:27 PM
15 Replies, 16,383 Views
Poetry Corner
Today 12:13 PM
83 Replies, 9,583 Views
Map shows world's 'most...
Today 07:16 AM
13 Replies, 174 Views
Why are There so Many...
Today 06:19 AM
49 Replies, 4,812 Views
Learn Punjabi Yourself...
Today 05:41 AM
15 Replies, 7,614 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 05:32 AM
167 Replies, 4,297 Views
The Great Imp Debate
Today 05:28 AM
32 Replies, 489 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 05:16 AM
299 Replies, 7,381 Views
BHOOTS (Ghosts) and...
Today 04:22 AM
92 Replies, 13,728 Views
Thought of the Moment!
Today 04:01 AM
105 Replies, 4,992 Views
Panjabi
Today 02:14 AM
9 Replies, 206 Views
Fresno Sikh Who Was...
Today 01:30 AM
0 Replies, 47 Views
Guns of the Nihangs...
Today 01:24 AM
0 Replies, 49 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 13:14 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.47920 seconds with 32 queries
0