Not Null In Query

D

DS

I'm sure the phrase is not Not Null, but I can't seem to find or remember
what it is?

Dim INCC As Long
INCC = Nz(DCount("PayAppliedCCRef", "tblPayApplied",
"NotNull(PayAppliedCCRef) And PayAppliedCheckID = " &
Forms!frmFXRefunds!TxtCheckID), 0)
Thanks
DS
 
M

Marshall Barton

DS said:
I'm sure the phrase is not Not Null, but I can't seem to find or remember
what it is?

Dim INCC As Long
INCC = Nz(DCount("PayAppliedCCRef", "tblPayApplied",
"NotNull(PayAppliedCCRef) And PayAppliedCheckID = " &
Forms!frmFXRefunds!TxtCheckID), 0)


"Not IsNull(PayAppliedCCRef) And PayAppliedCheckID = " &

will work, but that uses the VBA library.

This uses only standard SQL features:

"(PayAppliedCCRef Is Not Null) And PayAppliedCheckID = " &
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top