Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6754789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:19:22+00:00 2026-05-26T13:19:22+00:00

Okay, so I built a database that allows me to keep track of calls

  • 0

Okay, so I built a database that allows me to keep track of calls being made to potential customers. Basically, the user generates a call list, and after calling each customer, they update the Call Status field in one of my tables to either “Person Reached”, “Line Busy”, “Disconnected Number”, etc.

The problem I am having is that when I run the “Generate Call List” query (which I use to populate the Call List table), I am getting people who have already been reached. I have a condition that excludes anyone with a Call Status of “Person Reached”, but for some reason it’s not working. Here’s the SQL.

SELECT [Telephone Status].Patient_ID, Max([Telephone Status].Date_Called) 
AS [Date Last Called]
FROM [Telephone Status]
WHERE ((([Telephone Status].Call_Status_Details)="Call Back Later") AND
(([Telephone Status].Call_Status)<>"Person Reached"))
GROUP BY [Telephone Status].Patient_ID;

I thought that by using the Max function with the Date_Called field, that I would be excluding individuals who have a “Person Reached” status from the most recent call (Max), but I am still getting people who have been reached.

How can I check for this condition (“Person Reached”) for the most recent Date_Called entry for each participant, and exclude them if the condition is True (Person was reached)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:19:23+00:00Added an answer on May 26, 2026 at 1:19 pm

    The problem I am having is that when I run the "Generate Call List" query (which I use to populate the Call List table), I am getting people who have already been reached.

    And how do you know that statement to be true? I think you need to examine the data in the [Telephone Status] table … the Date_Called, Call_Status_Details, and Call_Status fields for one of the Patient_ID which was erroneously included on the call list.

    I have a condition that excludes anyone with a Call Status of "Person Reached", but for some reason it’s not working.

    Not exactly …

    SELECT
        ts.Patient_ID,
        Max(ts.Date_Called) AS [Date Last Called]
    FROM [Telephone Status] AS ts
    WHERE
        ts.Call_Status_Details = "Call Back Later"
        AND ts.Call_Status <> "Person Reached"
    GROUP BY ts.Patient_ID;
    

    … so you have two criteria which both must be True.

    Some ways a "person reached" could be included in the call list query are:

    1. Call_Status_Details = "Call Back Later" but Call_Status is anything
      other than "Person Reached", such as "Person R eached"; Person
      Reachd"; etc.
    2. A record with Call_Status_Details = "Call Back Later", a more recent
      Date_Called than the last Call_Status = "Person Reached", but
      some other valid value for Call_Status.
    3. Indexes for those fields are corrupt.

    The first is a data quality issue. You need to verify the data is consistently stored as you and your query expect.

    I don’t know about the second possibility. It depends on your business rules and how they are implemented.

    The last possibility, index corruption, appears to be rare in my experience, but I’ve heard it can happen. Compact & Repair could fix it. See Tony Towes’ Corrupt Microsoft Access MDBs FAQ for more detailed information.

    Edit: You have a "Generate Call List" query which populates a Call List table. That is a situation where the Call List table could get out of sync with the latest updates to the [Telephone Status] table. It would be better to use the query itself for the call list rather than duplicating (possibly outdated) information in a separate table.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

okay, i'm setting up a multi-user chat system. i have a messages table, that
Okay I've got my app.config file that is containing my database settings. All works
Okay, so I'm sure plenty of you have built crazy database intensive pages... I
Okay. I have a database that has bunch of stored procedures and references another
Okay so I have an html5 audio player that i built with jquery however
I have built a console application that works okay when it references a .exe
I have built a user control (ctlToolbarEdit) that has some buttons on it -
Okay, next PHPExcel question. I have an HTML form that users fill out and
I've built a (command-line) application in Scala that I want to distribute as a
Hi, I have built a ASP.NET MVC website that uses Membership, this works fine.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.