DCount and Problem with month function

omaggi

Registered User.
Local time
Today, 11:45
Joined
Oct 19, 2009
Messages
43
Hi Everyone.
I tried to use DCount but I have some problems with the function "month".

I wrote this code:
pippo = DCount("*", "valori15min", "[id_puntoMisura] =" & Me.ccPuntoMisura & " and [id_obis] =" & Me.txtObis1 & " and month[data_ora] =" & Me.ccMese)

But I have problems with the "month".

I need to make this function on the field "data_ora" in my db-table and after check with the value that is contained in ccMese on my form.

Any Suggestions?

Thanks a lot, greetings.
 
Month(someexpression)

The parentheses are essential.
 
Thanks a lot.
Works greatly!!!

Greetings.
 

Users who are viewing this thread

Back
Top Bottom