Thanks Terry. The result is a zero. FDOW is not set, so Sunday is a 1 and Monday is 2. I have also tried if cdow(crime.crimedate) = "Monday" with the same result.
>>I'm trying to count mondays. What the heck have I done wrong this time!!!?
>>
>>
>>If dow(crime.crimedate) = 2
>> monday1 = monday1 + 1
>>Endif
>>
>
>
>Dunno. What the heck is the result?
>
>One thing: what is yout SET FDOW set to ( Week Starts On list box, which appears on the Regional Tab in the Options dialog box.)? If different from Sunday then you need to explicitly state it in the func., i.e.
>
>dow(crime.crimedate, 1)
>
>Guess won't hurt to do that anyway.
>
>Terry
I ain't skeert of nuttin eh?
Yikes! What was that?