Results 1 to 7 of 7
  1. #1
    Casper2012 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    18

    Syntax criteria for first timr

    I have a database that cosists of many different customers and some of these have called name times and others may have only call.



    My question is:

    can you run a syntax criteria to pull "ONLY" the caller that called once?



    thanks

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    What tables do you have? How are tables related?
    You can do what you are asking provided that your data is organized and yyou can identify callers and number of calls.

  3. #3
    Casper2012 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    18
    First I would like to appoligize for the amount of typos in my former post. I didnt prrof my entry like I should have.


    So, here is bassically what I have...Lets say:

    John Smith calls from (555)243-1342
    (555)243-9709
    and (555)654-8070

    Jerry Lonex calls from (974)601-4845

    Peter Noix calls from (646)667-0466
    (646)485-0407


    As you can see, John and Peter both are repeat callers. Maybe the first time the called from their cell phone, and the next time from their bussiness phone. However, Jerry is a "one-time'caller". These are the ones I would like to capture perhaps in a report....



    **hope that was helpful in some way

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    That's fine. But what tables are in your database?

  5. #5
    Casper2012 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    18
    these are all in a customer table

    Customer First Name
    Lastr Name
    Phone Number
    Company Name
    Address
    etc;

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    First approach, I can think of

    SELECT [First Name] & [Last name] AS UniqueCombo
    FROM YourTableName
    GROUP BY [First Name] & [Last name]
    HAVING (((Count([First Name] & [Last name]))=1));
    but what if you get many calls from John Smith? What if there are several John Smiths?
    Last edited by orange; 08-28-2011 at 12:30 PM.

  7. #7
    Casper2012 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    18
    ORANGE<<< I see what you have sent to me. Now how would this make the final results look like? I think I undersatrand a bit on which way you are having mne to go here. Could you be just a bit more in detailed..... I think I am beginning to understand you....

    thanks a million !!!!!

    ** Oh and to answ2er your question, Yes I will have name calls from john and several different numbers, but i need to able to pick his name out of a search when he calls. thats why I am trying to come up with sort of plan...

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

Similar Threads

  1. Replies: 1
    Last Post: 07-13-2011, 11:00 AM
  2. Search By Criteria - Flexible Criteria Fields
    By lilanngel in forum Access
    Replies: 0
    Last Post: 03-16-2011, 06:25 PM
  3. Replies: 3
    Last Post: 10-15-2010, 11:17 AM
  4. Incomplete Syntax Clause (syntax error)
    By ajetrumpet in forum Programming
    Replies: 4
    Last Post: 09-11-2010, 10:47 AM
  5. using FindFirst with a Date Criteria (syntax error)
    By ajetrumpet in forum Programming
    Replies: 2
    Last Post: 09-10-2010, 11:01 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