Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL query on VB date

Status
Not open for further replies.

sankur

Programmer
Jul 10, 2002
8
hi all!
i wanted to create an SQL query that gets the invoices for a specific month i.e. Invoices dated in one month say, November.

I'm using the data control for my connection to the database. Can anyone give me the code for such a kind of SQL query.
 
Try

SELECT * FROM <yourtable> WHERE Month(<yourdatefield>)=11

This is 11 for November

I Hope this helps,
Carlos Paiva
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top