|
-
Mar 22nd, 2000, 10:50 PM
#1
Thread Starter
Addicted Member
I was wondering if anyone could help me with the syntax for the following query I need to perform:
I have a field in my data base called DATE_OPENED.
I need to make a sql statement that has the number of DATE_OPENED for the month or March.
I have SELECT COUNT(*) AS MarchReceived FROM MASTER WHERE (DATE_OPENED <>'"')
However, I need to get only the records from March that have something in the DATE_OPENED field. I'm thinking I need the between statement 3/1/00 and 3/31/00 but not sure how to use all of this in one statement or the correct syntax.
Any help would be great!!!
-
Mar 23rd, 2000, 12:03 AM
#2
Hyperactive Member
Hi, there.
SELECT COUNT(*) AS MarchReceived FROM MASTER WHERE DATE_OPENED BETWEEN #3/1/00# AND #3/31/00#
Larisa
-
Mar 23rd, 2000, 08:41 AM
#3
Member
Hi,
You can try this way also.
if you want to search for the month only then you can try this also.
Select count(*) as name from table where field = month(now)
this will return all rows for current month.
If you want to search other than the current month use a combo box to select and use the index value for your search.
thanks
karun
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|