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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:46:30+00:00 2026-06-06T08:46:30+00:00

Working with MS Access for the first time and coming across a few problems

  • 0

Working with MS Access for the first time and coming across a few problems if someone could please point me in the right direction.

So I’m doing a mock database (so it looks silly) just to learn the ins and outs and need some help with DLookUp at the moment.

My database has two tables, with the following fields:
C_ID the PK in Courses and FK in Student

tblCourse: C_ID, Title, Subject                              
tblStudent: S_ID, C_ID, Name, EnrollDATE  

As I said this is just for testing/learning. So what I want is to have a filter that gives me a list of C_ID‘s based on which EnrollDates are NULL.

so filter is:

Expr1: DLookUp("[tblStudent]![C_ID]","tblStudent","isNull([tblStudent]![EnrollDATE])")

I have also tried with the criteria being

 [tblStudent]![EnrollDATE] = Null

Currently I get just blank fields returned. Any help is greatly appreciated, and please ask me to elaborate if my explanation is off.

Thank You!

  • 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-06T08:46:31+00:00Added an answer on June 6, 2026 at 8:46 am

    The correct syntax looks like this:

    DLookup("C_ID", "tblStudent", "EnrollDate is null")
    
    1. You don’t need to include the table name when you specify the columns
    2. In Access, you check for Null by using xxx is null or xxx is not null

    Note that DLookup only returns one value (if the criteria matches more than one row, the value is taken from any row), so you can’t use it to get a list of C_IDs back.


    EDIT:
    What you actually want to do is select data from one table, and filter that based on data from the other table, correct?
    Like, selecting all courses where at least one student has an empty EnrollDATE?

    If yes, you don’t need the DLookup at all, there are two different ways how to do that:

    1) With a sub-select:

    select *
    from tblCourse
    where C_ID in
    (
        select C_ID
        from tblStudents
        where EnrollDATE is null
    )
    

    2) By joining the tables:

    select tblCourse.*
    from tblCourse
    inner join tblStudent on tblCourse.C_ID = tblStudent.C_ID
    where tblStudent.EnrollDATE is null
    

    This is SQL, so you need to switch to SQL View in your query in Access.

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

Sidebar

Related Questions

First time poster, so please excuse any stupidity. I'm working on porting a custom
First of all, I'm still working in classic ASP (vbScript) with an MS Access
This is my first time to deploy an asp.net web site. Everything is working
I'm working with xslt for the first time. I have 2.0, but that's about
This is not the first time I am working with ajax and such, I
I've been working with json for the first time and php for the first
I am working with mod_rewrite for the first time. I am going to present
This is my first time working with GAE and I'm trying to get CDI
I am working on a grails application for the first time and I now
I've got a legacy program, and I'm working with Access 97. I want to

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.