473,396 Members | 1,608 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Query to identify invalid phone numbers

Hey everyone,

Sorry if this is a stupid question, but I can't find the answer.

I need to query a list of phone numbers where the format is ##########
and have the results show any rows that the phone number starts with 0
or 1.

Any help would be greatly appreciated!

Nov 25 '06 #1
2 2259
On 25 Nov 2006 11:13:51 -0800, jf****@gmail.com wrote:

For the WHERE clause use:
Left$([PhoneNumber],1) in ('0', '1')

-Tom.

>Hey everyone,

Sorry if this is a stupid question, but I can't find the answer.

I need to query a list of phone numbers where the format is ##########
and have the results show any rows that the phone number starts with 0
or 1.

Any help would be greatly appreciated!
Nov 25 '06 #2
Thanks alot! That worked great!

Tom van Stiphout wrote:
On 25 Nov 2006 11:13:51 -0800, jf****@gmail.com wrote:

For the WHERE clause use:
Left$([PhoneNumber],1) in ('0', '1')

-Tom.

Hey everyone,

Sorry if this is a stupid question, but I can't find the answer.

I need to query a list of phone numbers where the format is ##########
and have the results show any rows that the phone number starts with 0
or 1.

Any help would be greatly appreciated!
Nov 27 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Dan Gidman | last post by:
Okay all I have a problem. I have two list of adresses and phone numbers. I do not have control over the contents of the lists The only unique field between the two is the phone number. I need...
8
by: Bruce Dodds | last post by:
When run manually, my query appends 14 records. When run from code using CurrentProject.Connection.Execute, the same query appends 11 records. Does anyone have an explanation of why this could be...
96
by: Karen Hill | last post by:
SELECT surgeries.*, animals.* FROM surgeries INNER JOIN animals ON .=. AND WHERE ((.=Date()) Or .=Date()); I'm trying to write a query that joins two table together, animals and surgeries...
8
by: Thomas A. Anderson | last post by:
I have ran into a rut! I have google'd, Yahoo'd, but could not find the proper syntax. I have spent over two day trying to figure this out, and decided that I will have to ask for help from the...
2
by: Welie | last post by:
I am trying to do a query to produce a list of employee and their telephone numbers (IF ANY) which joins on 3 tables. The complication is the 3rd table, the table containing telephone numbers....
5
by: Bob Bridges | last post by:
Start with two tables, parent records in one and child records in the other, a one-to-many relationship. Create a select statement joining the two. Display the query in datasheet mode. When I...
6
by: Phil Stanton | last post by:
I am running a query that calls a function used to format addresses depending on the width of a control on a report that shows that address. The same query is used as the RecordSource of lots of...
5
by: lim4801 | last post by:
I am currently in doing a program which is given by my tutor: Contemplate that you are working for the phone company and want to sell "special" phone numbers to companies. These phone numbers are...
11
by: davidj411 | last post by:
i am parsing a cell phone bill to get a list of all numbers and the total talktime spend on each number. i already have a unique list of the phone numbers. now i must go through the list of...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.