Basic Date Question (1 Viewer)

tsukeepr

Registered User.
Local time
Today, 00:10
Joined
Jun 6, 2002
Messages
11
I have a database that I want to only pull the entries from the current month up, I can't remember how to do this. could someone please help me.
 

thouston

Registered User.
Local time
Today, 00:10
Joined
Aug 6, 2002
Messages
44
Suppose your date column is called "dateval".

Then make a query and put Month([dateval])=Month(Now()) in the select criteria. Should work!
 

tsukeepr

Registered User.
Local time
Today, 00:10
Joined
Jun 6, 2002
Messages
11
not working

For some reason, when I enter in that formula, it only gives me the entries for the last two days, nothing from 8/2/2002.
I put the exact thing in the critiria part of the query, under the dateval feild. Am I doing something wrong?

Thank you for your help!
 

thouston

Registered User.
Local time
Today, 00:10
Joined
Aug 6, 2002
Messages
44
That's strange, it works for me. Though I did forget to make sure it was the current year if there's more than one stored, in which case you'd need
(Month([dateval])=Month(Now())) And (Year([dateval])=Year(Now()))

The only other thing is to check that your date format is what you intended - to my British eyes 8/2/2002 reads as 8th of feb....
 

tsukeepr

Registered User.
Local time
Today, 00:10
Joined
Jun 6, 2002
Messages
11
It works now, thank you very much for your help!!!
 

Users who are viewing this thread

Top Bottom