BitCounter
Programmer
How do I create a "SELECT statement that allows me to get records using 2 dates (obtained from textboxes) and get all records whose date appears within that range?<br>
<br>
For Example: The user selects to print out all records with a particular date. My program asks them to input a beginning date and an ending date. I then want the SQL to select all records that occur between these 2 dates. I can't find examples of this anywhere.<br>
<br>
Also would like to know the proper syntax for an SQL statement that obtains all records with a date prior to the one entered by the user (e.g., if the user enters 03/20/00, then my query should get all records with dates prior to 03/20/00)...any help would be greatly appreciated!
<br>
For Example: The user selects to print out all records with a particular date. My program asks them to input a beginning date and an ending date. I then want the SQL to select all records that occur between these 2 dates. I can't find examples of this anywhere.<br>
<br>
Also would like to know the proper syntax for an SQL statement that obtains all records with a date prior to the one entered by the user (e.g., if the user enters 03/20/00, then my query should get all records with dates prior to 03/20/00)...any help would be greatly appreciated!