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