Important alert: (current site time 7/16/2013 12:57:24 AM EDT)
 

winzip icon

[A Simple DB Program that queries specified date using SQL and DAO.]

Email
Submitted on: 7/7/2004 2:35:12 PM
By: Erdy Correa Marmito 
Level: Beginner
User Rating: By 13 Users
Compatibility: VB 5.0, VB 6.0
Views: 52138
 
     This sample code demonstrates how to query a specific date in your database.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

7/7/2004 3:55:09 PMD.W.

I like the clearness of this other way especially when dealing with whole days:
DateRef2 = Format(DateAdd("d", 1, CDate(DateRef)), "mm/d/yy")...
...& "AND ADMIT_DATE <= #" & DateRef _
& "# AND DISCHARGE_DATE > #" & DateRef2 & "# " _...
(If this comment was disrespectful, please report it.)

 
12/3/2004 8:07:40 AM

Its Good.
(If this comment was disrespectful, please report it.)

 
11/16/2005 2:23:28 AMCarsten Koch

Nice work man, nice work
(If this comment was disrespectful, please report it.)

 
5/7/2006 5:22:36 AMOmolade

What a fantastic code. Keep it up. I'm a student of computer sc of O.O.U Ogun state Nigeria. Pls, sir I need a code that will convert column to spredsheet from sql server 2000 e.g
id
(If this comment was disrespectful, please report it.)

 
5/7/2006 5:29:12 AMOmolade

What a fantastic code. Keep it up. I'm a student of computer sc of O.O.U Ogun state Nigeria. Pls, sir I need a code that will convert row to spreadsheet from sql server 2000 e.g
id course mark
01 cmp501 72
01 cmp503 58
02 cmp501 69
02 cmp503 42
to
id cmp501 cmp503
01 72 58
02 69 42
when using crystal report.
thank. i will be very clad if my request favourable consider.

(If this comment was disrespectful, please report it.)

 
6/12/2006 3:57:47 AMSsc

Thank's for this codes
(If this comment was disrespectful, please report it.)

 
11/1/2006 12:54:19 AMJka

good thank you.
(If this comment was disrespectful, please report it.)

 
2/21/2007 1:20:46 AMispi

Its simple, i like it, but how i can use access 2000 database..?
(If this comment was disrespectful, please report it.)

 
12/10/2008 2:06:07 PMJeff Kastner

Nice code. Any idea how I could modify it to not connect to an mdb db, but a MSSQL database instead? I have a client that needs to run a report and I thought what a great idea it would be to connect the user to the db via the code and have the query in there, so they can only run whatever query is in the code.
Thx!
(If this comment was disrespectful, please report it.)

 
4/4/2010 6:40:56 PMSaeran

Thanks 4 all
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.