Advertisement

03.23.2004 at 10:26PM PST, ID: 20929885
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

Date entered in the .asp page to retrieve a range of data based on dd-mm-yyyy format. MS Access captured query in mm-dd-yyyy format.

Asked by cpalbert in Active Server Pages (ASP)

Please help me to modify the following to retrieve data from MS Access based on a range of date input (format: dd-mm-yyyy).  The current result do not follow what I entered to the date field. e.g. 01-04-2004 will retrieve data for 4th Jan 2004.


<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--#include file="Connections/connCourtList.asp" -->
<%session.lcid=2057%>
<%
Dim rsDateRange
Dim rsDateRange_numRows

Set rsDateRange = Server.CreateObject("ADODB.Recordset")
rsDateRange.ActiveConnection = MM_connCourtList_STRING
rsDateRange.Source = "SELECT * FROM CourtList"
rsDateRange.CursorType = 0
rsDateRange.CursorLocation = 2
rsDateRange.LockType = 1
rsDateRange.Open()

rsDateRange_numRows = 0
%>
<html xmlns="http://www.w3.org/1999/xhtml">
...
.....

<form name="formRange" id="formRange" method="post" action="printByDateResult.asp">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="16%" align="right">BETWEEN:</td>
      <td width="2%">&nbsp;</td>
      <td width="29%"><input name="dateFrom" type="text" id="dateFrom" /></td>
      <td width="53%">&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td align="right">AND:</td>
      <td>&nbsp;</td>
      <td><input name="dateTo" type="text" id="dateTo2" /></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>
<input type="submit" name="Submit" value="Submit" /></td>
      <td>&nbsp;</td>
    </tr>
  </table>
</form>
Start Free Trial
 
Loading Advertisement...
 
[+][-]03.24.2004 at 12:18AM PST, ID: 10665210

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Active Server Pages (ASP)
Sign Up Now!
Solution Provided By: Makr_Watson27
Participating Experts: 3
Solution Grade: A
 
 
[+][-]03.24.2004 at 01:51AM PST, ID: 10665668

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]03.24.2004 at 01:56AM PST, ID: 10665696

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]11.04.2004 at 07:44AM PST, ID: 12494590

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]11.08.2004 at 02:46AM PST, ID: 12522122

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]11.12.2004 at 01:41AM PST, ID: 12563710

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32