Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Access

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-25-2008, 01:46 PM
=?Utf-8?B?YmV0aA==?=
 
Posts: n/a
phone number format

I'm using a combined value text box for a cell phone number.
="Cell:" + [CP] , I can't keep the formating from the table. I've tried
using a similiar format that I received last week concerning a zip code
format, but I get syntex error or 'missing comma or paranthese.
The goal here is to specify that this phone is a cell phone since it
displays right next to a home phone, but I don't want Cell to show if there
isn't one.
Any help is appreciated.
Reply With Quote
  #2 (permalink)  
Old 08-25-2008, 02:20 PM
=?Utf-8?B?V2F5bmUtSS1N?=
 
Posts: n/a
RE: phone number format

Can you give a few examples of a cell phone number (that you want to display)
and some "non" cell phone numbers (that you don't want to display)


--
Wayne
Manchester, England.



"beth" wrote:

> I'm using a combined value text box for a cell phone number.
> ="Cell:" + [CP] , I can't keep the formating from the table. I've tried
> using a similiar format that I received last week concerning a zip code
> format, but I get syntex error or 'missing comma or paranthese.
> The goal here is to specify that this phone is a cell phone since it
> displays right next to a home phone, but I don't want Cell to show if there
> isn't one.
> Any help is appreciated.

Reply With Quote
  #3 (permalink)  
Old 08-25-2008, 02:25 PM
John Spencer
 
Posts: n/a
Re: phone number format

It would help if you posted what you tried.

The following expression should work.

= IIF(Len([CP] & "") > 0, "Cell: " & [CP],Null)

John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County

beth wrote:
> I'm using a combined value text box for a cell phone number.
> ="Cell:" + [CP] , I can't keep the formating from the table. I've tried
> using a similiar format that I received last week concerning a zip code
> format, but I get syntex error or 'missing comma or paranthese.
> The goal here is to specify that this phone is a cell phone since it
> displays right next to a home phone, but I don't want Cell to show if there
> isn't one.
> Any help is appreciated.

Reply With Quote
  #4 (permalink)  
Old 08-25-2008, 02:30 PM
=?Utf-8?B?YmV0aA==?=
 
Posts: n/a
RE: phone number format

I need to display any number that appears in the table in a std format (area
code) ###-####. This is for a membership directory and will eventually go up
on the website and directly to a printer. So if no one gave me a cell no or a
fax no I don't want the label to be displayed on the report. I can get the
info to appear when I want I just can't maintain the input mask format.

"Wayne-I-M" wrote:

> Can you give a few examples of a cell phone number (that you want to display)
> and some "non" cell phone numbers (that you don't want to display)
>
>
> --
> Wayne
> Manchester, England.
>
>
>
> "beth" wrote:
>
> > I'm using a combined value text box for a cell phone number.
> > ="Cell:" + [CP] , I can't keep the formating from the table. I've tried
> > using a similiar format that I received last week concerning a zip code
> > format, but I get syntex error or 'missing comma or paranthese.
> > The goal here is to specify that this phone is a cell phone since it
> > displays right next to a home phone, but I don't want Cell to show if there
> > isn't one.
> > Any help is appreciated.

Reply With Quote
  #5 (permalink)  
Old 08-25-2008, 02:36 PM
=?Utf-8?B?YmV0aA==?=
 
Posts: n/a
Re: phone number format

This is the base I started with, then added & deleted commas and parenthese
="Cell:" = [CP],format([CP], "(000) 000-0000)

"John Spencer" wrote:

> It would help if you posted what you tried.
>
> The following expression should work.
>
> = IIF(Len([CP] & "") > 0, "Cell: " & [CP],Null)
>
> John Spencer
> Access MVP 2002-2005, 2007-2008
> The Hilltop Institute
> University of Maryland Baltimore County
>
> beth wrote:
> > I'm using a combined value text box for a cell phone number.
> > ="Cell:" + [CP] , I can't keep the formating from the table. I've tried
> > using a similiar format that I received last week concerning a zip code
> > format, but I get syntex error or 'missing comma or paranthese.
> > The goal here is to specify that this phone is a cell phone since it
> > displays right next to a home phone, but I don't want Cell to show if there
> > isn't one.
> > Any help is appreciated.

>

Reply With Quote
  #6 (permalink)  
Old 08-25-2008, 03:04 PM
=?Utf-8?B?YmV0aA==?=
 
Posts: n/a
Re: phone number format

I finally got it-
="Cell: "+IIf(Len([CP])=10,Format([CP],"(000) 000-0000"),[CP])
Thanks for being there again!

"John Spencer" wrote:

> It would help if you posted what you tried.
>
> The following expression should work.
>
> = IIF(Len([CP] & "") > 0, "Cell: " & [CP],Null)
>
> John Spencer
> Access MVP 2002-2005, 2007-2008
> The Hilltop Institute
> University of Maryland Baltimore County
>
> beth wrote:
> > I'm using a combined value text box for a cell phone number.
> > ="Cell:" + [CP] , I can't keep the formating from the table. I've tried
> > using a similiar format that I received last week concerning a zip code
> > format, but I get syntex error or 'missing comma or paranthese.
> > The goal here is to specify that this phone is a cell phone since it
> > displays right next to a home phone, but I don't want Cell to show if there
> > isn't one.
> > Any help is appreciated.

>

Reply With Quote
  #7 (permalink)  
Old 08-25-2008, 03:08 PM
=?Utf-8?B?S2xhdHV1?=
 
Posts: n/a
Re: phone number format

You have a syntax error and Cell: will be displayed regardless of whether
there is number in the field or not. If you use John's suggestion with a
Format added, I think it will get you what you want:
= IIF(Len([CP] & "") > 0, "Cell: " & Format([CP],"(000) 000-0000"),Null)

--
Dave Hargis, Microsoft Access MVP


"beth" wrote:

> This is the base I started with, then added & deleted commas and parenthese
> ="Cell:" = [CP],format([CP], "(000) 000-0000)
>
> "John Spencer" wrote:
>
> > It would help if you posted what you tried.
> >
> > The following expression should work.
> >
> > = IIF(Len([CP] & "") > 0, "Cell: " & [CP],Null)
> >
> > John Spencer
> > Access MVP 2002-2005, 2007-2008
> > The Hilltop Institute
> > University of Maryland Baltimore County
> >
> > beth wrote:
> > > I'm using a combined value text box for a cell phone number.
> > > ="Cell:" + [CP] , I can't keep the formating from the table. I've tried
> > > using a similiar format that I received last week concerning a zip code
> > > format, but I get syntex error or 'missing comma or paranthese.
> > > The goal here is to specify that this phone is a cell phone since it
> > > displays right next to a home phone, but I don't want Cell to show if there
> > > isn't one.
> > > Any help is appreciated.

> >

Reply With Quote
  #8 (permalink)  
Old 08-25-2008, 03:12 PM
=?Utf-8?B?YmV0aA==?=
 
Posts: n/a
Re: phone number format

I got it with this-
="Cell: "+IIf(Len([CP])=10,Format([CP],"(000) 000-0000"),[CP])
Thanks for everyone's help

"Klatuu" wrote:

> You have a syntax error and Cell: will be displayed regardless of whether
> there is number in the field or not. If you use John's suggestion with a
> Format added, I think it will get you what you want:
> = IIF(Len([CP] & "") > 0, "Cell: " & Format([CP],"(000) 000-0000"),Null)
>
> --
> Dave Hargis, Microsoft Access MVP
>
>
> "beth" wrote:
>
> > This is the base I started with, then added & deleted commas and parenthese
> > ="Cell:" = [CP],format([CP], "(000) 000-0000)
> >
> > "John Spencer" wrote:
> >
> > > It would help if you posted what you tried.
> > >
> > > The following expression should work.
> > >
> > > = IIF(Len([CP] & "") > 0, "Cell: " & [CP],Null)
> > >
> > > John Spencer
> > > Access MVP 2002-2005, 2007-2008
> > > The Hilltop Institute
> > > University of Maryland Baltimore County
> > >
> > > beth wrote:
> > > > I'm using a combined value text box for a cell phone number.
> > > > ="Cell:" + [CP] , I can't keep the formating from the table. I've tried
> > > > using a similiar format that I received last week concerning a zip code
> > > > format, but I get syntex error or 'missing comma or paranthese.
> > > > The goal here is to specify that this phone is a cell phone since it
> > > > displays right next to a home phone, but I don't want Cell to show if there
> > > > isn't one.
> > > > Any help is appreciated.
> > >

Reply With Quote
  #9 (permalink)  
Old 08-25-2008, 03:16 PM
=?Utf-8?B?S2xhdHV1?=
 
Posts: n/a
Re: phone number format

I thought you said you did not want Cell: to show if there is no number. As
you have it written, it will show. Also, I would not trust your Len = 10
test.
--
Dave Hargis, Microsoft Access MVP


"beth" wrote:

> I got it with this-
> ="Cell: "+IIf(Len([CP])=10,Format([CP],"(000) 000-0000"),[CP])
> Thanks for everyone's help
>
> "Klatuu" wrote:
>
> > You have a syntax error and Cell: will be displayed regardless of whether
> > there is number in the field or not. If you use John's suggestion with a
> > Format added, I think it will get you what you want:
> > = IIF(Len([CP] & "") > 0, "Cell: " & Format([CP],"(000) 000-0000"),Null)
> >
> > --
> > Dave Hargis, Microsoft Access MVP
> >
> >
> > "beth" wrote:
> >
> > > This is the base I started with, then added & deleted commas and parenthese
> > > ="Cell:" = [CP],format([CP], "(000) 000-0000)
> > >
> > > "John Spencer" wrote:
> > >
> > > > It would help if you posted what you tried.
> > > >
> > > > The following expression should work.
> > > >
> > > > = IIF(Len([CP] & "") > 0, "Cell: " & [CP],Null)
> > > >
> > > > John Spencer
> > > > Access MVP 2002-2005, 2007-2008
> > > > The Hilltop Institute
> > > > University of Maryland Baltimore County
> > > >
> > > > beth wrote:
> > > > > I'm using a combined value text box for a cell phone number.
> > > > > ="Cell:" + [CP] , I can't keep the formating from the table. I've tried
> > > > > using a similiar format that I received last week concerning a zip code
> > > > > format, but I get syntex error or 'missing comma or paranthese.
> > > > > The goal here is to specify that this phone is a cell phone since it
> > > > > displays right next to a home phone, but I don't want Cell to show if there
> > > > > isn't one.
> > > > > Any help is appreciated.
> > > >

Reply With Quote
  #10 (permalink)  
Old 08-25-2008, 03:22 PM
=?Utf-8?B?YmV0aA==?=
 
Posts: n/a
Re: phone number format

I don't want cell to show, I used + not &. I printed it and it looks the way
I want, but will the len 10 be a problem when I save HTML

"Klatuu" wrote:

> I thought you said you did not want Cell: to show if there is no number. As
> you have it written, it will show. Also, I would not trust your Len = 10
> test.
> --
> Dave Hargis, Microsoft Access MVP
>
>
> "beth" wrote:
>
> > I got it with this-
> > ="Cell: "+IIf(Len([CP])=10,Format([CP],"(000) 000-0000"),[CP])
> > Thanks for everyone's help
> >
> > "Klatuu" wrote:
> >
> > > You have a syntax error and Cell: will be displayed regardless of whether
> > > there is number in the field or not. If you use John's suggestion with a
> > > Format added, I think it will get you what you want:
> > > = IIF(Len([CP] & "") > 0, "Cell: " & Format([CP],"(000) 000-0000"),Null)
> > >
> > > --
> > > Dave Hargis, Microsoft Access MVP
> > >
> > >
> > > "beth" wrote:
> > >
> > > > This is the base I started with, then added & deleted commas and parenthese
> > > > ="Cell:" = [CP],format([CP], "(000) 000-0000)
> > > >
> > > > "John Spencer" wrote:
> > > >
> > > > > It would help if you posted what you tried.
> > > > >
> > > > > The following expression should work.
> > > > >
> > > > > = IIF(Len([CP] & "") > 0, "Cell: " & [CP],Null)
> > > > >
> > > > > John Spencer
> > > > > Access MVP 2002-2005, 2007-2008
> > > > > The Hilltop Institute
> > > > > University of Maryland Baltimore County
> > > > >
> > > > > beth wrote:
> > > > > > I'm using a combined value text box for a cell phone number.
> > > > > > ="Cell:" + [CP] , I can't keep the formating from the table. I've tried
> > > > > > using a similiar format that I received last week concerning a zip code
> > > > > > format, but I get syntex error or 'missing comma or paranthese.
> > > > > > The goal here is to specify that this phone is a cell phone since it
> > > > > > displays right next to a home phone, but I don't want Cell to show if there
> > > > > > isn't one.
> > > > > > Any help is appreciated.
> > > > >

Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Access


Thread Tools Search this Thread
Search this Thread:

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:16 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Tesco | Remortgaging | Credit Check | Internet Advertising | Mortgage Loans



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114