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

  • SEARCH
  • Home
  • 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 9038585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T09:31:23+00:00 2026-06-16T09:31:23+00:00

I have a table which I need to track items that are returned for

  • 0

I have a table which I need to track items that are returned for repair, so track the disposition, problems and when we received and shipped the items out.:

Table Name: RMAItems
 id  | RMANbr | PartNbr  |  RecvDate   |
-----------------------------------------
 1   | 12345  | 456-003  |  12-21-2012 |
 2   | 12345  | 434-007  |  12-21-2012 |
 3   | 12346  | 422-010  |             |
 4   | 12347  | 421-540  |  12-21-2012 |
 5   | 12347  | 460-000  |             |
 6   | 12348  | 459-006  |  12-26-2012 |
 7   | 12349  | 439-007  |             |
 8   | 12349  | 435-006  |             |   

The ‘Recv Date’ column is the only one out of the three that can be NULL (i.e. No value). The id is the primary key (no dups) and the RMA Nbr column can have duplicates (as there can be multiple items per RMA Nbr assigned to a customer). The Recv Date column can be NULL until we mark it as received and a form fills in the date automtically via another query.

I need a query in Access 2003 (my company is poor and can’t upgrade right now) to count the amount of distinct records in the RMA Nbr column in which the Recv Date field is NULL (i.e. I need to know the amount of RMA Nbr’s that have not had all items received). If I were to run the query I need on the above database I would expect it to return 3 as there are three RMA Nbr’s that have items on them that have not been received.

I’ve tried the following queries with no success:

SELECT Count(RMANbr)
FROM RMAItems
WHERE RecvDate Is Null;

(returns 4)

SELECT Count(*)
FROM RMAItems
WHERE RecvDate Is Null;

(returns 4)

SELECT Count(*)
FROM (SELECT DISTINCT RMANbr FROM RMAItems)
WHERE RecvDate Is Null;

(when this query is run is pops up a dialog box with a text box and ‘RecvDate’ above the text box)

As mentioned, I’m working with MS Access 2003 on a Windows XP Pro SP3 machine.

I’ve done some Google’ing but have not come up with a query that will do what I need it to do (that’s how I came up with the subquery above that didn’t work). Any help you can provide would be super.

Thanks.

  • 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-06-16T09:31:24+00:00Added an answer on June 16, 2026 at 9:31 am

    Use an approach similar to your third sample, but move the WHERE clause into the subquery. The reason you got the parameter dialog box for RecvDate is because that field was not included in the subquery SELECT list, so was unknown/unavailable to the parent query.

    SELECT Count(*)
    FROM
        (
            SELECT DISTINCT RMANbr
            FROM RMAItems
            WHERE RecvDate Is Null
        ) AS sub;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following statement that I need to run on a table which
I have a table in which I need both the values to be primary
I have table which contains double values stored in mysql database ...I need to
I have a table called tester which I need to overlay with a temporary
I have a rather large table which I need to query for a reporting
Hi I have a table which references itself and I need to be able
I have a table into which new data is frequently inserted. I need to
I have one table TABLE_SUBJECT which contain a number of subjects. I need to
I have a table in mysql which is not normalized and I need to
I have a simple table view which is editable. All I need the user

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.