hi guys
I am having a hard time getting my head around this but basically I am trying to do a dcount on multiple criteria
this is working as I would like
Nz(DCount("ItemNumber", "UNEXData", "ItemNumber = forms.UNEXdetails.ITEMNUMBER And Planned = true And Running = False And Completed = false"), 0)
this produces the correct number "1" which is correct
what I can't seem to get my head around is using an or statement for example
Nz(DCount("ItemNumber", "UNEXData", "ItemNumber = forms.UNEXdetails.ITEMNUMBER And Planned = true Or Running = true Or Completed = true"), 0)
this produces the incorrect number "67" which is incorrect
using this the values are miles off,
is this the correct way to count or is their another domain function that is used in this scenario
many thanks
Steve