<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'HELP!!!!!1' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'HELP!!!!!1' posted on the 'Active Server Pages' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 13:51:57 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 13:51:57 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>HELP!!!!!1</title>
      <link>http://www.programmersheaven.com/mb/aspfaq/196915/196915/help1/</link>
      <description>Hi !!!&lt;br /&gt;
I need some genuine help here. as a Novice in ASP i need a a code snippet for displaying data based on the two dates entered by the user.&lt;br /&gt;
There are two text boxes and tow dates are entered here. Based on these dates, the data is pulled from the database. Can someone help, coa this is the only night i am left with. I need to complete it by tonite itself. SO please help me.&lt;br /&gt;
Thanks in advance,&lt;br /&gt;
Vinay&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/aspfaq/196915/196915/help1/</guid>
      <pubDate>Mon, 23 Jun 2003 10:27:36 -0700</pubDate>
      <category>Active Server Pages</category>
    </item>
    <item>
      <title>Re: HELP!!!!!1</title>
      <link>http://www.programmersheaven.com/mb/aspfaq/196915/197025/re-help1/#197025</link>
      <description>&lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by WaltP at  2003-6-23 22:52:54&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
: Hi !!!&lt;br /&gt;
: I need some genuine help here. as a Novice in ASP i need a a code snippet for displaying data based on the two dates entered by the user.&lt;br /&gt;
: There are two text boxes and tow dates are entered here. Based on these dates, the data is pulled from the database. Can someone help, coa this is the only night i am left with. I need to complete it by tonite itself. SO please help me.&lt;br /&gt;
: Thanks in advance,&lt;br /&gt;
: Vinay&lt;br /&gt;
: &lt;br /&gt;
Create an SQL statement that uses the two dates in a WHILE clause, like&lt;br /&gt;
WHILE txtDate1 &amp;lt; DateField and txtDate2 &amp;gt; DateField&lt;br /&gt;
&lt;br /&gt;
Your class should have already taught you the syntax&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----------------&lt;br /&gt;
Walt&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/aspfaq/196915/197025/re-help1/#197025</guid>
      <pubDate>Mon, 23 Jun 2003 22:51:56 -0700</pubDate>
      <category>Active Server Pages</category>
    </item>
    <item>
      <title>Re: HELP!!!!!1</title>
      <link>http://www.programmersheaven.com/mb/aspfaq/196915/197029/re-help1/#197029</link>
      <description>&lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by jigar16 at  2003-6-23 23:17:39&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
: Hi !!!&lt;br /&gt;
: I need some genuine help here. as a Novice in ASP i need a a code snippet for displaying data based on the two dates entered by the user.&lt;br /&gt;
: There are two text boxes and tow dates are entered here. Based on these dates, the data is pulled from the database. Can someone help, coa this is the only night i am left with. I need to complete it by tonite itself. SO please help me.&lt;br /&gt;
: Thanks in advance,&lt;br /&gt;
: Vinay&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
Try the query like&lt;br /&gt;
"Select *from tbl where datediff(d,"&amp;amp;dDate&amp;amp;",datefield)&amp;gt;=0 and datediff(d,"&amp;amp;dDate&amp;amp;",datefield)&amp;lt;=0 "&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/aspfaq/196915/197029/re-help1/#197029</guid>
      <pubDate>Mon, 23 Jun 2003 23:15:04 -0700</pubDate>
      <category>Active Server Pages</category>
    </item>
    <item>
      <title>Re: HELP!!!!!1</title>
      <link>http://www.programmersheaven.com/mb/aspfaq/196915/197080/re-help1/#197080</link>
      <description>: &lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by jigar16 at  2003-6-23 23:17:39&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
: : Hi !!!&lt;br /&gt;
: : I need some genuine help here. as a Novice in ASP i need a a code snippet for displaying data based on the two dates entered by the user.&lt;br /&gt;
: : There are two text boxes and tow dates are entered here. Based on these dates, the data is pulled from the database. Can someone help, coa this is the only night i am left with. I need to complete it by tonite itself. SO please help me.&lt;br /&gt;
: : Thanks in advance,&lt;br /&gt;
: : Vinay&lt;br /&gt;
: : &lt;br /&gt;
: &lt;br /&gt;
: Try the query like&lt;br /&gt;
: "Select *from tbl where datediff(d,"&amp;amp;dDate&amp;amp;",datefield)&amp;gt;=0 and datediff(d,"&amp;amp;dDate&amp;amp;",datefield)&amp;lt;=0 "&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why bother with datediff()?  This should do the same thing:&lt;br /&gt;
&lt;br /&gt;
"SELECT * FROM MyTbl WHERE datefield &amp;gt;= '" &amp;amp; strDate1 &amp;amp; "' AND datefield &amp;lt;= '" &amp;amp; strDate2 &amp;amp; "'" &lt;br /&gt;
&lt;br /&gt;
It's also far more clear in what it does.  IIRC we were taught about a BETWEEN operator, so it could actually be simplified further and be even more clear (assuming BETWEEN really exists and can be applied to date fields).  Then it could look something like:&lt;br /&gt;
&lt;br /&gt;
"SELECT * FROM MyTbl WHERE datefield BETWEEN ('" &amp;amp; strDate1 &amp;amp; "', '" &amp;amp; strDate2 &amp;amp; "')"&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/aspfaq/196915/197080/re-help1/#197080</guid>
      <pubDate>Tue, 24 Jun 2003 06:24:38 -0700</pubDate>
      <category>Active Server Pages</category>
    </item>
    <item>
      <title>Re: HELP!!!!!1</title>
      <link>http://www.programmersheaven.com/mb/aspfaq/196915/197098/re-help1/#197098</link>
      <description>: : &lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by jigar16 at  2003-6-23 23:17:39&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
: : : Hi !!!&lt;br /&gt;
: : : I need some genuine help here. as a Novice in ASP i need a a code snippet for displaying data based on the two dates entered by the user.&lt;br /&gt;
: : : There are two text boxes and tow dates are entered here. Based on these dates, the data is pulled from the database. Can someone help, coa this is the only night i am left with. I need to complete it by tonite itself. SO please help me.&lt;br /&gt;
: : : Thanks in advance,&lt;br /&gt;
: : : Vinay&lt;br /&gt;
: : : &lt;br /&gt;
: : &lt;br /&gt;
: : Try the query like&lt;br /&gt;
: : "Select *from tbl where datediff(d,"&amp;amp;dDate&amp;amp;",datefield)&amp;gt;=0 and datediff(d,"&amp;amp;dDate&amp;amp;",datefield)&amp;lt;=0 "&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: Why bother with datediff()?  This should do the same thing:&lt;br /&gt;
: &lt;br /&gt;
: "SELECT * FROM MyTbl WHERE datefield &amp;gt;= '" &amp;amp; strDate1 &amp;amp; "' AND datefield &amp;lt;= '" &amp;amp; strDate2 &amp;amp; "'" &lt;br /&gt;
: &lt;br /&gt;
: It's also far more clear in what it does.  IIRC we were taught about a BETWEEN operator, so it could actually be simplified further and be even more clear (assuming BETWEEN really exists and can be applied to date fields).  Then it could look something like:&lt;br /&gt;
: &lt;br /&gt;
: "SELECT * FROM MyTbl WHERE datefield BETWEEN ('" &amp;amp; strDate1 &amp;amp; "', '" &amp;amp; strDate2 &amp;amp; "')"&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
I think the syntax for between is like :&lt;br /&gt;
&lt;br /&gt;
"SELECT * FROM MyTbl WHERE datefield BETWEEN '" &amp;amp; strDate1 &amp;amp; "' AND '" &amp;amp; strDate2 &amp;amp; "')"&lt;br /&gt;
&lt;br /&gt;
I am not sure if access can handle it ,SQL Server ,Oracle can.&lt;br /&gt;
&lt;br /&gt;
Faustine&lt;br /&gt;
--------&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/aspfaq/196915/197098/re-help1/#197098</guid>
      <pubDate>Tue, 24 Jun 2003 07:02:12 -0700</pubDate>
      <category>Active Server Pages</category>
    </item>
    <item>
      <title>Re: HELP!!!!!1</title>
      <link>http://www.programmersheaven.com/mb/aspfaq/196915/197103/re-help1/#197103</link>
      <description>: : : &lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by jigar16 at  2003-6-23 23:17:39&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
: : : : Hi !!!&lt;br /&gt;
: : : : I need some genuine help here. as a Novice in ASP i need a a code snippet for displaying data based on the two dates entered by the user.&lt;br /&gt;
: : : : There are two text boxes and tow dates are entered here. Based on these dates, the data is pulled from the database. Can someone help, coa this is the only night i am left with. I need to complete it by tonite itself. SO please help me.&lt;br /&gt;
: : : : Thanks in advance,&lt;br /&gt;
: : : : Vinay&lt;br /&gt;
: : : : &lt;br /&gt;
: : : &lt;br /&gt;
: : : Try the query like&lt;br /&gt;
: : : "Select *from tbl where datediff(d,"&amp;amp;dDate&amp;amp;",datefield)&amp;gt;=0 and datediff(d,"&amp;amp;dDate&amp;amp;",datefield)&amp;lt;=0 "&lt;br /&gt;
: : &lt;br /&gt;
: : &lt;br /&gt;
: : Why bother with datediff()?  This should do the same thing:&lt;br /&gt;
: : &lt;br /&gt;
: : "SELECT * FROM MyTbl WHERE datefield &amp;gt;= '" &amp;amp; strDate1 &amp;amp; "' AND datefield &amp;lt;= '" &amp;amp; strDate2 &amp;amp; "'" &lt;br /&gt;
: : &lt;br /&gt;
: : It's also far more clear in what it does.  IIRC we were taught about a BETWEEN operator, so it could actually be simplified further and be even more clear (assuming BETWEEN really exists and can be applied to date fields).  Then it could look something like:&lt;br /&gt;
: : &lt;br /&gt;
: : "SELECT * FROM MyTbl WHERE datefield BETWEEN ('" &amp;amp; strDate1 &amp;amp; "', '" &amp;amp; strDate2 &amp;amp; "')"&lt;br /&gt;
: : &lt;br /&gt;
: &lt;br /&gt;
: I think the syntax for between is like :&lt;br /&gt;
: &lt;br /&gt;
: "SELECT * FROM MyTbl WHERE datefield BETWEEN '" &amp;amp; strDate1 &amp;amp; "' AND '" &amp;amp; strDate2 &amp;amp; "')"&lt;br /&gt;
: &lt;br /&gt;
: I am not sure if access can handle it ,SQL Server ,Oracle can.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ahh yes that is the syntax.  And yeah, I doubt that Access can handle it.  I used to use Access a lot, but now that I only use MSSQL I tend to forget what it can and can't do.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/aspfaq/196915/197103/re-help1/#197103</guid>
      <pubDate>Tue, 24 Jun 2003 07:19:41 -0700</pubDate>
      <category>Active Server Pages</category>
    </item>
    <item>
      <title>Re: HELP!!!!!1</title>
      <link>http://www.programmersheaven.com/mb/aspfaq/196915/197105/re-help1/#197105</link>
      <description>: : : &lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by jigar16 at  2003-6-23 23:17:39&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
: : : : Hi !!!&lt;br /&gt;
: : : : I need some genuine help here. as a Novice in ASP i need a a code snippet for displaying data based on the two dates entered by the user.&lt;br /&gt;
: : : : There are two text boxes and tow dates are entered here. Based on these dates, the data is pulled from the database. Can someone help, coa this is the only night i am left with. I need to complete it by tonite itself. SO please help me.&lt;br /&gt;
: : : : Thanks in advance,&lt;br /&gt;
: : : : Vinay&lt;br /&gt;
: : : : &lt;br /&gt;
: : : &lt;br /&gt;
: : : Try the query like&lt;br /&gt;
: : : "Select *from tbl where datediff(d,"&amp;amp;dDate&amp;amp;",datefield)&amp;gt;=0 and datediff(d,"&amp;amp;dDate&amp;amp;",datefield)&amp;lt;=0 "&lt;br /&gt;
: : &lt;br /&gt;
: : &lt;br /&gt;
: : Why bother with datediff()?  This should do the same thing:&lt;br /&gt;
: : &lt;br /&gt;
: : "SELECT * FROM MyTbl WHERE datefield &amp;gt;= '" &amp;amp; strDate1 &amp;amp; "' AND datefield &amp;lt;= '" &amp;amp; strDate2 &amp;amp; "'" &lt;br /&gt;
: : &lt;br /&gt;
: : It's also far more clear in what it does.  IIRC we were taught about a BETWEEN operator, so it could actually be simplified further and be even more clear (assuming BETWEEN really exists and can be applied to date fields).  Then it could look something like:&lt;br /&gt;
: : &lt;br /&gt;
: : "SELECT * FROM MyTbl WHERE datefield BETWEEN ('" &amp;amp; strDate1 &amp;amp; "', '" &amp;amp; strDate2 &amp;amp; "')"&lt;br /&gt;
: : &lt;br /&gt;
: &lt;br /&gt;
: I think the syntax for between is like :&lt;br /&gt;
: &lt;br /&gt;
: "SELECT * FROM MyTbl WHERE datefield BETWEEN '" &amp;amp; strDate1 &amp;amp; "' AND '" &amp;amp; strDate2 &amp;amp; "')"&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: Faustine&lt;br /&gt;
: --------&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/aspfaq/196915/197105/re-help1/#197105</guid>
      <pubDate>Tue, 24 Jun 2003 07:25:09 -0700</pubDate>
      <category>Active Server Pages</category>
    </item>
    <item>
      <title>Re: HELP!!!!!1</title>
      <link>http://www.programmersheaven.com/mb/aspfaq/196915/197106/re-help1/#197106</link>
      <description>: : : : &lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by jigar16 at  2003-6-23 23:17:39&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
: : : : : Hi !!!&lt;br /&gt;
: : : : : I need some genuine help here. as a Novice in ASP i need a a code snippet for displaying data based on the two dates entered by the user.&lt;br /&gt;
: : : : : There are two text boxes and tow dates are entered here. Based on these dates, the data is pulled from the database. Can someone help, coa this is the only night i am left with. I need to complete it by tonite itself. SO please help me.&lt;br /&gt;
: : : : : Thanks in advance,&lt;br /&gt;
: : : : : Vinay&lt;br /&gt;
: : : : : &lt;br /&gt;
: : : : &lt;br /&gt;
: : : : Try the query like&lt;br /&gt;
: : : : "Select *from tbl where datediff(d,"&amp;amp;dDate&amp;amp;",datefield)&amp;gt;=0 and datediff(d,"&amp;amp;dDate&amp;amp;",datefield)&amp;lt;=0 "&lt;br /&gt;
: : : &lt;br /&gt;
: : : &lt;br /&gt;
: : : Why bother with datediff()?  This should do the same thing:&lt;br /&gt;
: : : &lt;br /&gt;
: : : "SELECT * FROM MyTbl WHERE datefield &amp;gt;= '" &amp;amp; strDate1 &amp;amp; "' AND datefield &amp;lt;= '" &amp;amp; strDate2 &amp;amp; "'" &lt;br /&gt;
: : : &lt;br /&gt;
: : : It's also far more clear in what it does.  IIRC we were taught about a BETWEEN operator, so it could actually be simplified further and be even more clear (assuming BETWEEN really exists and can be applied to date fields).  Then it could look something like:&lt;br /&gt;
: : : &lt;br /&gt;
: : : "SELECT * FROM MyTbl WHERE datefield BETWEEN ('" &amp;amp; strDate1 &amp;amp; "', '" &amp;amp; strDate2 &amp;amp; "')"&lt;br /&gt;
: : : &lt;br /&gt;
: : &lt;br /&gt;
: : I think the syntax for between is like :&lt;br /&gt;
: : &lt;br /&gt;
: : "SELECT * FROM MyTbl WHERE datefield BETWEEN '" &amp;amp; strDate1 &amp;amp; "' AND '" &amp;amp; strDate2 &amp;amp; "')"&lt;br /&gt;
: : &lt;br /&gt;
: : I am not sure if access can handle it ,SQL Server ,Oracle can.&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: Ahh yes that is the syntax.  And yeah, I doubt that Access can handle it.  I used to use Access a lot, but now that I only use MSSQL I tend to forget what it can and can't do.&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
I just checked, Access do handle it ( Sorry  Access ,for doubting you &lt;img src="http://www.programmersheaven.com/images/Community/smile.gif" width="15" height="15" alt="" /&gt; ).&lt;br /&gt;
&lt;br /&gt;
Faustine&lt;br /&gt;
--------&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/aspfaq/196915/197106/re-help1/#197106</guid>
      <pubDate>Tue, 24 Jun 2003 07:27:02 -0700</pubDate>
      <category>Active Server Pages</category>
    </item>
  </channel>
</rss>