Missing Operator

D

DS

I'm getting a Missing Operator message on this statement.
Any Input is appreciated.
Thanks
DS

CARDS = Nz(DCount("PayAppliedID", "tblPayApplied", "(PayAppliedCCRef Is Not
Null) And PayAppliedCheckID = " & frm!TxtCheckID.value & " And
PayAppliedRefundID = 0"), 0)
 
D

Douglas J. Steele

What are the data types of PayAppliedCheckID and PayAppliedRefundID. If
either are text, you need quotes around the values.
 
J

John W. Vinson

I'm getting a Missing Operator message on this statement.
Any Input is appreciated.
Thanks
DS

CARDS = Nz(DCount("PayAppliedID", "tblPayApplied", "(PayAppliedCCRef Is Not
Null) And PayAppliedCheckID = " & frm!TxtCheckID.value & " And
PayAppliedRefundID = 0"), 0)

If txtCheckID is NULL you will get this error message. You may need to check
for that situation before this line, or use the NZ() function to return a
value.
 
D

DS

Thanks John. You right the CheckID was null, the value wasn't being passed.
I corrected that and it works now.
Thank you.
DS
 

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

Similar Threads

Not Null In Query 2
DSum Syntax 3
Mail Merge Switch - Dollars to Words 0
Argument Not Optional 3
DCount Syntax 2
Nested IIF in Query 2
Missing Operator 4
Type Mismatch 1

Top