Advertisement

07.01.2008 at 09:33AM PDT, ID: 23530799
[x]
Attachment Details

Access: Dcount number of records where field is Null

Asked by ouestque in Access Coding/Macros

Tags: Microsoft, Access, 2000-2003

I submitted a string of code below: it is supposed to search my table ("StudentName") for all records where the field "NumberStudents" is null and StudentName = "Tom". I can not get the "Null" part to work. (password is always 0)Will someone correct my syntax below so that my code will work.

dim password as integer

password = DCount("[NumberStudents]", "[Classes]", "[StudentName] = "Tom"' and [NumberStudents] ='" & Null & "'")
Start Free Trial
 
Keywords: Access: Dcount number of records …
 
Loading Advertisement...
 
[+][-]07.01.2008 at 09:58AM PDT, ID: 21909498

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Access Coding/Macros
Tags: Microsoft, Access, 2000-2003
Sign Up Now!
Solution Provided By: capricorn1
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.01.2008 at 10:45AM PDT, ID: 21909911

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628