Dcount Syntak ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to use an "AND" with an "not isnull" in the criterea section of
dcount and I am having a problem. I think its a syntak error.

=DCount("[Combined]","qryPartHistory","[Combined] Like[Combo115] &
[fldSerialNumberIn] AND not isnull [fldDateShipped]")
It works until I add everything past AND.
 
NNlogistics said:
I am trying to use an "AND" with an "not isnull" in the criterea
section of dcount and I am having a problem. I think its a syntak
error.

=DCount("[Combined]","qryPartHistory","[Combined] Like[Combo115] &
[fldSerialNumberIn] AND not isnull [fldDateShipped]")
It works until I add everything past AND.

If it all works until you add the AND, try this:

=DCount("[Combined]","qryPartHistory","[Combined] Like [Combo115] &
[fldSerialNumberIn] AND [fldDateShipped] Is Not Null")

BTW, that's "syntax", not "syntak".
 
Thanks, that worked fine. Access is so Consistent
--
Thanks for any assistance


Dirk Goldgar said:
NNlogistics said:
I am trying to use an "AND" with an "not isnull" in the criterea
section of dcount and I am having a problem. I think its a syntak
error.

=DCount("[Combined]","qryPartHistory","[Combined] Like[Combo115] &
[fldSerialNumberIn] AND not isnull [fldDateShipped]")
It works until I add everything past AND.

If it all works until you add the AND, try this:

=DCount("[Combined]","qryPartHistory","[Combined] Like [Combo115] &
[fldSerialNumberIn] AND [fldDateShipped] Is Not Null")

BTW, that's "syntax", not "syntak".

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)
 

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

Access Dcount function in access 0
Syntax for DCount Code 4
Dcount operation 2
Access MS Access DCount function problem 0
filter on dates 2
Dcount 2
DCount alwaysreturning 1 0
count of records in a table in external database 3

Back
Top