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 8145067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:32:56+00:00 2026-06-06T13:32:56+00:00

Just need some quick clarification I have 2 Queries in my Access Database that

  • 0

Just need some quick clarification

I have 2 Queries in my Access Database that should return Inverse results:

SELECT Equipment.title
FROM Equipment
WHERE (((Equipment.[EquipmentID]) Not In (

    select EquipmentID
    from DownPeriod
    where UpDate is null
)));

The 2nd just excludes the Not before the In.
My Confusion comes from the fact that the query posted above does not return any results if an EquipmentID field has at least 1 null value in the DownPeriod table.

It works fine if the fields are filled, and the inverse query list always works. This makes me think there’s an issue with the null value.

Now this field should never be null but I wanted to know if I could still get this to work in the unlikely event a null did occur.

Thank you in advanced!

  • 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-06T13:32:59+00:00Added an answer on June 6, 2026 at 1:32 pm

    Try joins:

    SELECT Equipment.title FROM Equipment INNER JOIN DownPeriod
    ON Equipment.EquipmentID = DownPeriod.EquipmentID
    WHERE DownPeriod.UpDate is null
    

    and

    SELECT Equipment.title FROM Equipment INNER JOIN DownPeriod
    ON Equipment.EquipmentID = DownPeriod.EquipmentID
    WHERE DownPeriod.UpDate is not null
    

    See if a change in syntax fixes your issue.

    Not only should this work, but I believe it is a faster practise than using the IN() NOT IN() methods (might be wrong on that, but it looks nicer to read). It also adds the ability to quickly change the “is not null” criteria just the same as IN->NOT IN

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

Sidebar

Related Questions

Just need some quick guidance - I have a main frame, and I want
I just need some clarification on variables A normal variable has 2 parts to
Im just starting with localization today and need some information. I have a project
I just need some quick help on syntax. I'm doing a WPF project and
Quick question: I've run into a little issue, where I just need some insight
Just a quick question. I have a system which contains some silverlight elements to
I need some quick code just to see what files are listed when I
Just a quick regex question...hopefully I have a string that looks something like this:
Just wanted some quick help I'm 90% sure i need to use the (this)
Just a quick question, I have seen some web page if I click view

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.