Results 1 to 2 of 2
  1. #1
    Scott O'Neal is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2012
    Posts
    1

    Excluding phone numbers using a query


    OKay, here's the lowdown, I have written a simple query to list the phone numbers I have entered into a client database. I have 3 fields in my table, (autonumber, date, and phone number). I wrote the first query and it produced a list of phone numbers dating back to the inception of the database. I then added a critria statement to limit the list to the last 31 days, >Now()-31. Now I need to get rid of any local phone calls that were placed, showing only the phone numbers outside of the 615 area code. I have tried quite a bit, but nothing is working. Any tips or suggestions?

    Thanks,
    Scott ☺

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    You haven't specified the layout of your phone numbers, but if it is all numeric, any you want to exclude phone numbers beginning with a 615 area code, you could use the criteria:
    Code:
    LEFT([phone number],3)<>"615"

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Dashes in phone numbers and zip codes
    By JMack in forum Access
    Replies: 8
    Last Post: 11-18-2013, 01:56 PM
  2. Verifying phone numbers
    By looloo in forum Forms
    Replies: 15
    Last Post: 09-23-2011, 07:38 AM
  3. Syntax to have phone numbers display
    By Juan4412 in forum Queries
    Replies: 7
    Last Post: 09-09-2011, 06:41 AM
  4. Excluding data in a query
    By lpdds in forum Queries
    Replies: 1
    Last Post: 12-16-2009, 08:06 PM
  5. Dialing Phone Numbers From Access
    By obrmb in forum Forms
    Replies: 0
    Last Post: 06-11-2009, 12:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums