![]() |
|
|
Select Between Date Range from Access Database in ASPThe database is called 'dbDate', the table 'tblDate' and date field 'dDate'. The 'dDate' field is a DATE/TIME datatype. Our code selects all the dates between the two variables dDateFrom and dDateTo. <% SQL="SELECT dDate FROM tblDate WHERE dDate BETWEEN " & dDateFrom & " AND " & dDateTo sConnString="PROVIDER=Microsoft.Jet.OLEDB.4.0;" & _ Change date format from DDMMYYYY to MMDDYYYY Format If you have any code snippets to share with full credit given then send an email to Codesnippets - You'll receive full credit and a link back to your site. Site developed by Michael Wall - Web Design Belfast N.Ireland. |
|