GREAT! That worked, But i forgot one thing
I have "Stop Code" Where I want the count only when "Stop Code" = '00'
So your =DCount("*", "[Work Orders]", "[Time Completed] >= Date()"), But How do I have it just count with stop code 00?
Same way you would do it with a query: add another criterion. Assuming (again,
you don't say so I have to guess!!!!) that the datatype of Stop Code is TEXT
rather than NUMBER, you should be able to use
=DCount("*", "[Work Orders]", "[Time Completed] >= Date() AND [Stop Code] =
'00'")
A Text field criterion must be delimited with quotemarks, either singlequote '
or doublequote ". Since the third argument to Dcount already has doublequote
characters, it's easier to use singlequotes.
Side note: it's probably not a good idea to use blanks, and (especially)
punctuation if fieldnames. Blanks are meaningful delimiters in expressions, so
if you have a blank in a fieldname you MUST enclose the fieldname in [square
brackets], otherwise Access won't know that you intend Stop Code to be the
name of one thing - it'll think you're talking about Stop, and about Code, and
not know WHAT to do. I'd use single words with "camel case" - StopCode,
TimeCompleted - or use underscores instead of blanks - Stop_Code.
--
John W. Vinson [MVP]
Microsoft's replacements for these newsgroups:
http://social.msdn.microsoft.com/Forums/en-US/accessdev/
http://social.answers.microsoft.com/Forums/en-US/addbuz/
and see also
http://www.utteraccess.com