opendentalsupport.com is an independent community resource. We are NOT affiliated with, endorsed by, or sponsored by Open Dental Software, Inc. Open Dental® is a registered trademark of Open Dental Software, Inc.

Credit Balance Patients Query

SQL Queries3 min read4/9/2026

If you are tired of manually searching through accounts to find patients who have overpaid or have unallocated credits, this open dental credit balance query will pull that list for you in seconds. It is a simple way to identify which accounts need attention so you can issue refunds or apply those credits to outstanding treatment plans.

The Query

Copy and paste the following code into your User Query window. This query looks for all active patients who currently have a negative balance (a credit).

/* 
   Finds active patients with a negative balance (credit) 
   Change the @MinCreditAmount if you only want to see credits over a certain dollar amount.
*/
SET @MinCreditAmount = 0.01; 

SELECT 
    PatNum, 
    LName, 
    FName, 
    EstBalance AS 'CurrentBalance'
FROM patient
WHERE PatStatus = 0 
  AND EstBalance < -@MinCreditAmount
ORDER BY EstBalance ASC;

How to Run This Query

  1. In Open Dental, go to Reports in the Main Menu.
  2. Click User Query.
  3. Paste the query provided above into the large text box.
  4. Click Submit Query.
  5. The results will display in the grid below the text box.

Understanding the Results

How to Customize

You can easily tailor this report to fit your specific needs by modifying the variables at the top of the query:

Variations

If you want to see the credit balance specifically for the Guarantor of the family (since that is where the financial responsibility usually lies), you can use this variation:

SELECT 
    PatNum, 
    LName, 
    FName, 
    EstBalance 
FROM patient 
WHERE PatStatus = 0 
  AND EstBalance < -0.01
  AND PatNum = Guarantor
ORDER BY EstBalance ASC;

Skip the Query — Use DentalCanvas Instead

Don't want to write SQL? DentalCanvas connects to your Open Dental database and shows you this data automatically in a visual dashboard — no queries required.


This article is provided by opendentalsupport.com, an independent community resource. We are not affiliated with Open Dental Software, Inc.

Stop Writing SQL.

DentalCanvas connects directly to your Open Dental database and shows you production, collections, scheduling, and more — in a visual dashboard you can understand at a glance. No queries. No exports. Just answers.

Try DentalCanvas

Was this article helpful?

Related Articles

opendentalsupport.com is an independent community resource. We are NOT affiliated with, endorsed by, or sponsored by Open Dental Software, Inc. Open Dental® is a registered trademark of Open Dental Software, Inc.